35 lines
1013 B
TypeScript
Raw Normal View History

2021-02-19 18:12:07 +01:00
import 'react-native-gesture-handler';
2021-02-19 18:02:24 +01:00
import { Navigation } from "react-native-navigation";
2021-02-19 18:12:07 +01:00
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
2021-02-19 18:43:41 +01:00
import { App } from './src/App';
import { Settings } from './src/Settings';
import { Splash } from './src/Splash';
2021-02-19 18:44:05 +01:00
import { Media } from './src/Media';
2021-02-19 16:07:53 +01:00
2021-02-19 18:24:32 +01:00
Navigation.setDefaultOptions({
topBar: {
visible: false,
},
});
2021-02-19 18:12:07 +01:00
Navigation.registerComponent('Splash', () => gestureHandlerRootHOC(Splash), () => Splash);
Navigation.registerComponent('Home', () => gestureHandlerRootHOC(App), () => App);
2021-02-19 18:44:05 +01:00
Navigation.registerComponent('Media', () => gestureHandlerRootHOC(Media), () => Media);
2021-02-19 18:12:07 +01:00
Navigation.registerComponent('Settings', () => gestureHandlerRootHOC(Settings), () => Settings);
2021-02-19 18:02:24 +01:00
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
stack: {
children: [
{
component: {
2021-02-19 18:12:07 +01:00
name: 'Splash'
2021-02-19 18:02:24 +01:00
}
}
]
}
}
});
});