-
-
Save amandeepmittal/1c08f087ec3de1546c22715cbe92d09a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// App.js | |
import React from 'react'; | |
import { Text, View } from 'react-native'; | |
import { createBottomTabNavigator } from 'react-navigation'; | |
class HomeScreen extends React.Component { | |
render() { | |
return ( | |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | |
<Text>Home!</Text> | |
</View> | |
); | |
} | |
} | |
class SettingsScreen extends React.Component { | |
render() { | |
return ( | |
<View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}> | |
<Text>Settings!</Text> | |
</View> | |
); | |
} | |
} | |
export default createBottomTabNavigator({ | |
Home: HomeScreen, | |
Settings: SettingsScreen | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment