Skip to content

Instantly share code, notes, and snippets.

@EkaanshArora
Created August 27, 2019 21:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EkaanshArora/9f2ef696dd08e9d9ae75bb6f4696b3d3 to your computer and use it in GitHub Desktop.
Save EkaanshArora/9f2ef696dd08e9d9ae75bb6f4696b3d3 to your computer and use it in GitHub Desktop.
import { Router, Scene, ActionConst } from 'react-native-router-flux';
import React from 'react';
import Video from './Video';
import Home from './Home';
const RouterComponent = () => (
<Router>
<Scene>
<Scene key="home" component={Home} title="Agora Video Call" initial type={ActionConst.RESET} />
<Scene key="video" component={Video} title="Video Feed" type={ActionConst.RESET} hideNavBar={true} />
</Scene>
</Router>
);
export default RouterComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment