App.js 648 B

123456789101112131415161718192021222324252627
  1. import 'react-native-gesture-handler';
  2. import React, { useEffect } from 'react';
  3. import { NavigationContainer } from '@react-navigation/native';
  4. import { DefaultTheme, Provider } from 'react-native-paper'
  5. import { AuthProvider } from './contexts/AuthContext'
  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}><AuthProvider>
  17. <NavigationContainer>
  18. <MainStackNavigator />
  19. </NavigationContainer>
  20. </AuthProvider></Provider>
  21. )
  22. }
  23. export default App;