react-native-vision-camera/example/index.tsx
2021-02-19 18:24:32 +01:00

33 lines
876 B
TypeScript

import 'react-native-gesture-handler';
import { Navigation } from "react-native-navigation";
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
import App from './src/App';
import Settings from './src/Settings';
import Splash from './src/Splash';
Navigation.setDefaultOptions({
topBar: {
visible: false,
},
});
Navigation.registerComponent('Splash', () => gestureHandlerRootHOC(Splash), () => Splash);
Navigation.registerComponent('Home', () => gestureHandlerRootHOC(App), () => App);
Navigation.registerComponent('Settings', () => gestureHandlerRootHOC(Settings), () => Settings);
Navigation.events().registerAppLaunchedListener(() => {
Navigation.setRoot({
root: {
stack: {
children: [
{
component: {
name: 'Splash'
}
}
]
}
}
});
});