-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added react-navigation to mobile app
- Loading branch information
1 parent
d616acd
commit 285e788
Showing
5 changed files
with
90 additions
and
6 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"rules": { | ||
".read": true, | ||
".write": true | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import React, {Component} from 'react'; | ||
import {View, Text, Button} from 'react-native'; | ||
|
||
import{styles} from '../styles/styles'; | ||
|
||
export default class Feed extends Component{ | ||
|
||
render(){ | ||
|
||
return( | ||
<View style={styles.center}> | ||
<Text> This is the feed</Text> | ||
<Button title = 'Go to Main Menu' | ||
onPress = {()=> this.props.navigation.navigate('MainRoute')} /> | ||
</View> | ||
|
||
) | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import React, {Component} from 'react'; | ||
import {View, Text, Button} from 'react-native'; | ||
|
||
import{styles} from '../styles/styles'; | ||
|
||
export default class Main extends Component{ | ||
|
||
render(){ | ||
|
||
return( | ||
<View style={styles.center}> | ||
<Text> Main Menu </Text> | ||
<Button title = 'Go to Feed' onPress = {()=> this.props.navigation.navigate('FeedRoute')} /> | ||
</View> | ||
|
||
) | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import {StyleSheet, Text, View } from 'react-native'; | ||
|
||
export const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); | ||
|