App.js 611 B

1234567891011121314151617181920212223242526
  1. import 'react-native-gesture-handler';
  2. import React from 'react';
  3. import { NavigationContainer } from '@react-navigation/native';
  4. import { createStackNavigator } from '@react-navigation/stack';
  5. import { DefaultTheme, Provider } from 'react-native-paper'
  6. import MainStackNavigator from './navigation/MainStackNavigator';
  7. const theme = {
  8. ...DefaultTheme,
  9. colors: {
  10. primary: '#df3f3f',
  11. accent: 'white',
  12. },
  13. }
  14. const App = () => {
  15. return(
  16. <Provider theme={theme}>
  17. <NavigationContainer>
  18. <MainStackNavigator />
  19. </NavigationContainer>
  20. </Provider>
  21. )
  22. }
  23. export default App;