Skip to content

Instantly share code, notes, and snippets.

@Yassir4
Last active July 31, 2019 12:22
Show Gist options
  • Save Yassir4/ea5c987c0d1a484f676df406bb0448f1 to your computer and use it in GitHub Desktop.
Save Yassir4/ea5c987c0d1a484f676df406bb0448f1 to your computer and use it in GitHub Desktop.
registering the screens
import {Navigation} from 'react-native-navigation';
import Home from '../screens/Home';
import PushedScreen from '../screens/PushedScreen';
import ModalScreen from '../screens/ModalScreen';
export function registerScreens() {
Navigation.registerComponent('HomeScreen', () => Home);
Navigation.registerComponent('PushedScreen', () => PushedScreen);
Navigation.registerComponent('ModalScreen', () => ModalScreen);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment