Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import { createStackNavigator } from 'react-navigation';
- import { Platform } from 'react-native';
- import { Earnings } from '@/containers/Earnings';
- import { Home } from '@/containers/Home';
- const RootApp = createStackNavigator({
- Home: { screen: Home },
- Earnings: {
- screen: Earnings,
- path: 'earnings/:user',
- },
- });
- export const App = () => {
- // on Android, the URI prefix typically contains a host in addition to scheme
- const prefix =
- Platform.OS == 'android'
- ? 'testapp://testapp/'
- : 'testapp://';
- return <RootApp uriPrefix={prefix} />;
- };
Add Comment
Please, Sign In to add comment