Last active
January 7, 2019 21:23
-
-
Save aloukissas/488f14a5a7069031fb89f2ed71632352 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
import React from "react"; | |
import { StyleSheet, Text, View } from "react-native"; | |
import { createStackNavigator, createAppContainer } from "react-navigation"; | |
class CitiesScreen extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text>Cities Screen</Text> | |
</View> | |
); | |
} | |
} | |
class ListsScreen extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text>Lists Screen</Text> | |
</View> | |
); | |
} | |
} | |
class EntriesScreen extends React.Component { | |
render() { | |
return ( | |
<View style={styles.container}> | |
<Text>Entries Screen</Text> | |
</View> | |
); | |
} | |
} | |
const AppNavigator = createStackNavigator({ | |
Cities: { | |
screen: CitiesScreen | |
}, | |
Lists: { | |
screen: ListsScreen | |
}, | |
Entries: { | |
screen: EntriesScreen | |
} | |
}); | |
export default createAppContainer(AppNavigator); | |
const styles = StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: "#fff", | |
alignItems: "center", | |
justifyContent: "center" | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment