Skip to content

Instantly share code, notes, and snippets.

@alien3d
Created August 18, 2017 03:19
Show Gist options
  • Save alien3d/9c2306cb3dfd2303db94387c45ba4f03 to your computer and use it in GitHub Desktop.
Save alien3d/9c2306cb3dfd2303db94387c45ba4f03 to your computer and use it in GitHub Desktop.
import { Navigation } from 'react-native-navigation';
import LoginScreen from './LoginScreen';
import RegisterScreen from './RegisterScreen';
import DrawerScreen from './DrawerScreen';
import DashboardScreen from './DashboardScreen';
import ListingScreen from './ListingScreen';
import ProfileScreen from './ProfileScreen';
// register all screens of the app (including internal ones)
export function registerScreens() {
Navigation.registerComponent('idcms.LoginScreen', () => LoginScreen);
Navigation.registerComponent('idcms.RegisterScreen', () => RegisterScreen);
Navigation.registerComponent('idcms.DashboardScreen', () => DashboardScreen);
Navigation.registerComponent('idcms.DrawerScreen', () => DrawerScreen);
Navigation.registerComponent('idcms.ListingScreen', () => ListingScreen);
Navigation.registerComponent('idcms.ProfileScreen', () => ProfileScreen);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment