react-native-navigation的迁移库

index.js 1.2KB

1234567891011121314151617181920212223
  1. import {Navigation} from 'react-native-navigation';
  2. import LoginScreen from './LoginScreen';
  3. import FirstTabScreen from './FirstTabScreen';
  4. import SecondTabScreen from './SecondTabScreen';
  5. import PushedScreen from './PushedScreen';
  6. import ListScreen from './ListScreen';
  7. import SideMenu from './SideMenu';
  8. import BottomTabsSideMenu from './BottomTabsSideMenu';
  9. import TopTabsScreen from './TopTabsScreen';
  10. // register all screens of the app (including internal ones)
  11. export function registerScreens(store, Provider) {
  12. Navigation.registerComponent('example.LoginScreen', () => LoginScreen, store, Provider);
  13. Navigation.registerComponent('example.FirstTabScreen', () => FirstTabScreen, store, Provider);
  14. Navigation.registerComponent('example.SecondTabScreen', () => SecondTabScreen, store, Provider);
  15. Navigation.registerComponent('example.PushedScreen', () => PushedScreen, store, Provider);
  16. Navigation.registerComponent('example.ListScreen', () => ListScreen, store, Provider);
  17. Navigation.registerComponent('example.SideMenu', () => SideMenu, store, Provider);
  18. Navigation.registerComponent('example.BottomTabsSideMenu', () => BottomTabsSideMenu, store, Provider);
  19. Navigation.registerComponent('example.TopTabsScreen', () => TopTabsScreen);
  20. }