Guest User

Untitled

a guest
Jul 21st, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import React from 'react';
  2. import { createStackNavigator } from 'react-navigation';
  3. import { Platform } from 'react-native';
  4. import { Earnings } from '@/containers/Earnings';
  5. import { Home } from '@/containers/Home';
  6.  
  7.  
  8. const RootApp = createStackNavigator({
  9. Home: { screen: Home },
  10. Earnings: {
  11. screen: Earnings,
  12. path: 'earnings/:user',
  13. },
  14. });
  15.  
  16. export const App = () => {
  17. // on Android, the URI prefix typically contains a host in addition to scheme
  18. const prefix =
  19. Platform.OS == 'android'
  20. ? 'testapp://testapp/'
  21. : 'testapp://';
  22.  
  23. return <RootApp uriPrefix={prefix} />;
  24. };
Add Comment
Please, Sign In to add comment