Skip to content

Instantly share code, notes, and snippets.

@BrightnBubbly

BrightnBubbly/Routes.js Secret

Created Apr 26, 2020
Embed
What would you like to do?
import React from 'react';
import { Router, Scene } from 'react-native-router-flux'
import Login from './Login';
import Chat from './ClientChat';
import Admin from './AdminChat';
const Routes = () => (
<Router>
<Scene key = "root">
<Scene key = "login" component = {Login} title = "Login" initial = {true} />
<Scene key = "chat" component = {Chat} title = "Chat" />
<Scene key = "admin" component = {Admin} title = "Admin Panel" />
</Scene>
</Router>
)
export default Routes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.