-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from fabianamasini/develop
Develop
- Loading branch information
Showing
21 changed files
with
406 additions
and
213 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
import React from 'react'; | ||
import Router from './router.js'; | ||
import { StyleSheet, Text } from 'react-native'; | ||
import Routes from './router.js'; | ||
|
||
|
||
export default function App() { | ||
return ( | ||
<Router /> | ||
<Routes/> | ||
); | ||
} | ||
|
||
const styles = StyleSheet.create({ | ||
container: { | ||
flex: 1, | ||
backgroundColor: '#fff', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
}, | ||
}); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,52 +1,21 @@ | ||
import { createAppContainer } from 'react-navigation'; | ||
import { createStackNavigator } from 'react-navigation-stack'; | ||
import React from 'react'; | ||
import { createStackNavigator } from '@react-navigation/stack' | ||
import { NavigationContainer } from '@react-navigation/native' | ||
|
||
import { lightGreen } from './utils/constants' | ||
import stackNav from './routes/stackNavigation' | ||
import drawerNav from './routes/drawerNavigation' | ||
|
||
import Login from './screens/login'; | ||
import SignUp from './screens/signup'; | ||
import Profile from './screens/profile'; | ||
import Home from './screens/home'; | ||
const Stack = createStackNavigator() | ||
|
||
const Routes = createAppContainer( | ||
createStackNavigator({ | ||
Login : { | ||
screen: Login, | ||
navigationOptions: { | ||
headerShown: true, | ||
headerLeft: () => null | ||
} | ||
}, | ||
SignUp : { | ||
screen: SignUp, | ||
navigationOptions: { | ||
headerShown: true, | ||
headerLeft: () => null | ||
} | ||
}, | ||
Profile : { | ||
screen: Profile, | ||
navigationOptions: { | ||
headerShown: true, | ||
headerLeft: () => null | ||
} | ||
}, | ||
Home : { | ||
screen: Home, | ||
navigationOptions: { | ||
headerShown: true, | ||
headerLeft: () => null | ||
} | ||
} | ||
}, { | ||
defaultNavigationOptions: { | ||
headerTintColor: '#fff', | ||
headerBackTitleVisible: false, | ||
headerStyle: { | ||
backgroundColor: lightGreen, | ||
} | ||
} | ||
}) | ||
); | ||
function Routes() { | ||
return ( | ||
<NavigationContainer> | ||
<Stack.Navigator screenOptions={{ headerShown: false }}> | ||
<Stack.Screen name='Stack' component={stackNav}/> | ||
<Stack.Screen name='Drawer' component={drawerNav} /> | ||
</Stack.Navigator> | ||
</NavigationContainer> | ||
) | ||
} | ||
|
||
export default Routes; | ||
export default Routes; |
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,18 @@ | ||
import { createDrawerNavigator } from '@react-navigation/drawer'; | ||
import React from 'react'; | ||
|
||
import Profile from '../screens/profile'; | ||
import Home from '../screens/home'; | ||
|
||
const Drawer = createDrawerNavigator() | ||
|
||
function drawerNav() { | ||
return ( | ||
<Drawer.Navigator> | ||
<Drawer.Screen name='Home' component={Home} /> | ||
<Drawer.Screen name='Profile' component={Profile}/> | ||
</Drawer.Navigator> | ||
) | ||
} | ||
|
||
export default drawerNav; |
Oops, something went wrong.