I hereby claim:
- I am aravi365 on github.
- I am aravindmnair (https://keybase.io/aravindmnair) on keybase.
- I have a public key ASA1VVmhXl6TVexRYyVOAb277NcvCbjeZOaWtj9il4gxoAo
To claim this, I am signing this object:
import React from 'react'; | |
import {View, Text, ActivityIndicator, StyleSheet} from 'react-native'; | |
export default class SplashPage extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text style={{color: 'blue', fontSize: 40}}>Learn Firebase</Text> | |
<ActivityIndicator color="blue" size="large" /> | |
</View> | |
); |
import React from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
TextInput, | |
View, | |
Button, | |
TouchableOpacity, | |
ToastAndroid, | |
} from 'react-native'; |
import React from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
TextInput, | |
View, | |
Button, | |
ToastAndroid, | |
} from 'react-native'; |
import React from 'react'; | |
import {StyleSheet, Platform, Image, Text, View} from 'react-native'; | |
export default class Home extends React.Component { | |
state = {currentUser: null}; | |
render() { | |
const {currentUser} = this.state; | |
return ( | |
<View style={styles.container}> | |
<Text style={{fontSize: 25}}>Hi </Text> | |
<Text style={{color: 'blue', fontSize: 25}}> |
import {createStackNavigator} from 'react-navigation-stack'; | |
import {createAppContainer} from 'react-navigation'; | |
import SplashPage from './src/containers/SplashPage'; | |
import SignUp from './src/containers/Signup'; | |
import Login from './src/containers/Login'; | |
import Home from './src/containers/Home'; | |
const App = createStackNavigator( | |
{ | |
SplashPage: { |
import React from 'react'; | |
import {View, Text, ActivityIndicator, StyleSheet} from 'react-native'; | |
import firebase from 'react-native-firebase'; | |
export default class SplashPage extends React.Component { | |
componentDidMount() { | |
setTimeout(() => { | |
firebase.auth().onAuthStateChanged(user => { | |
this.props.navigation.navigate(user ? 'Home' : 'SignUp'); | |
}); | |
}, 1800); |
import React from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
TextInput, | |
View, | |
Button, | |
ToastAndroid, | |
} from 'react-native'; |
import React from 'react'; | |
import {StyleSheet, Platform, Image, Text, View} from 'react-native'; | |
import firebase from 'react-native-firebase'; | |
export default class Home extends React.Component { | |
state = {currentUser: null}; | |
componentDidMount() { | |
const {currentUser} = firebase.auth(); | |
this.setState({currentUser}); | |
} | |
render() { |
import React from 'react'; | |
import { | |
StyleSheet, | |
Text, | |
TextInput, | |
View, | |
Button, | |
ToastAndroid, | |
} from 'react-native'; |
I hereby claim:
To claim this, I am signing this object: