Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
React Native Stream Group Chat Tutorial: Initialize routes
// Root.js
import React, { Component } from 'react';
import { YellowBox } from 'react-native';
import { createStackNavigator, createAppContainer } from 'react-navigation';
import Login from './src/screens/Login';
import Chat from './src/screens/Chat';
YellowBox.ignoreWarnings(["Setting a timer"]);
const RootStack = createStackNavigator(
initialRouteName: "Login"
const AppContainer = createAppContainer(RootStack);
class Router extends Component {
render() {
return <AppContainer />;
export default Router;
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.