index.js 731 B

123456789101112131415161718192021222324252627
  1. /**
  2. * @format
  3. */
  4. import React from 'react';
  5. import {AppRegistry, StatusBar} from 'react-native';
  6. import 'react-native-gesture-handler';
  7. import './app/utils/notification';
  8. import './app/utils/constant';
  9. import './app/utils/vector_icon';
  10. import Router from './app/pages/Router';
  11. import {name as appName} from './app.json';
  12. //import {ModalPortal} from 'react-native-modals';
  13. import ModalPortal from './app/components/ModalPortal';
  14. import {RootSiblingParent} from 'react-native-root-siblings';
  15. const Index = () => {
  16. return (
  17. <RootSiblingParent>
  18. <StatusBar backgroundColor={colorPrimaryDark}/>
  19. <Router />
  20. <ModalPortal />
  21. </RootSiblingParent>
  22. );
  23. };
  24. AppRegistry.registerComponent(appName, () => Index);