App.tsx 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import { StatusBar, StyleSheet, useColorScheme } from 'react-native';
  2. import Toast from 'react-native-toast-message';
  3. import { AppProvider } from '@app/contexts/AppProvider.tsx';
  4. import { RootSiblingParent } from 'react-native-root-siblings';
  5. import NavigationContainer from '@app/routes/NavigationContainer';
  6. import BottomSheet from '@common/components/BottomSheet.tsx';
  7. import Alert from '@common/components/Alert.tsx';
  8. function App() {
  9. const isDarkMode = useColorScheme() === 'dark';
  10. return (
  11. <>
  12. <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
  13. <AppProvider>
  14. <RootSiblingParent>
  15. {/*<CopilotProvider*/}
  16. {/* backdropColor="rgba(0, 0, 0, 0.7)"*/}
  17. {/* stepNumberComponent={() => null}*/}
  18. {/* arrowSize={0}*/}
  19. {/* tooltipStyle={styles.tooltip}*/}
  20. {/* tooltipComponent={TooltipComponent}*/}
  21. {/*>*/}
  22. <NavigationContainer />
  23. {/*</CopilotProvider>*/}
  24. </RootSiblingParent>
  25. <BottomSheet ref={ref => BottomSheet.setRef(ref)} />
  26. <Alert ref={ref => Alert.setRef(ref)} />
  27. <Toast />
  28. </AppProvider>
  29. </>
  30. );
  31. }
  32. const styles = StyleSheet.create({
  33. tooltip: {
  34. backgroundColor: 'rgba(0, 0, 0, 0)',
  35. },
  36. });
  37. export default App;