2021-02-19 10:12:07 -07:00
|
|
|
import 'react-native-gesture-handler';
|
2021-02-19 10:02:24 -07:00
|
|
|
import { Navigation } from "react-native-navigation";
|
2021-02-19 10:12:07 -07:00
|
|
|
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
|
2021-02-19 08:07:53 -07:00
|
|
|
import App from './src/App';
|
2021-02-19 10:02:24 -07:00
|
|
|
import Settings from './src/Settings';
|
2021-02-19 10:12:07 -07:00
|
|
|
import Splash from './src/Splash';
|
2021-02-19 08:07:53 -07:00
|
|
|
|
2021-02-19 10:12:07 -07:00
|
|
|
|
|
|
|
Navigation.registerComponent('Splash', () => gestureHandlerRootHOC(Splash), () => Splash);
|
|
|
|
Navigation.registerComponent('Home', () => gestureHandlerRootHOC(App), () => App);
|
|
|
|
Navigation.registerComponent('Settings', () => gestureHandlerRootHOC(Settings), () => Settings);
|
2021-02-19 10:02:24 -07:00
|
|
|
|
|
|
|
Navigation.events().registerAppLaunchedListener(() => {
|
|
|
|
Navigation.setRoot({
|
|
|
|
root: {
|
|
|
|
stack: {
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
component: {
|
2021-02-19 10:12:07 -07:00
|
|
|
name: 'Splash'
|
2021-02-19 10:02:24 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|