SHARE
TWEET

Untitled

a guest Aug 20th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React from 'react';
  2. // Import navigators
  3. import {
  4.   createStackNavigator,
  5.   createSwitchNavigator,
  6.   createAppContainer
  7. } from 'react-navigation';
  8.  
  9. // Import pages
  10. import JoinScreen from './Join';
  11. import ChatScreen from './Chat';
  12.  
  13. // Ignore warning for websocker
  14. console.ignoredYellowBox = ['Remote debugger'];
  15. import {YellowBox} from 'react-native';
  16. YellowBox.ignoreWarnings([
  17.   'Unrecognized WebSocket connection option(s) `agent`, `perMessageDeflate`, `pfx`, `key`, `passphrase`, `cert`, `ca`, `ciphers`, `rejectUnauthorized`. Did you mean to put these under `headers`?'
  18. ]);
  19.  
  20. // Create stack navigator for AppStack
  21. const AppStack = createStackNavigator({Chat: ChatScreen});
  22.  
  23. // Create switch navigator
  24. export default createAppContainer(
  25.   createSwitchNavigator(
  26.     {
  27.       App: AppStack,
  28.       Auth: JoinScreen
  29.     },
  30.     {
  31.       initialRouteName: 'Auth'
  32.     }
  33.   )
  34. );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top