Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan
Created January 27, 2020 21:21
Show Gist options
  • Save ozcanzaferayan/0ab8e38e52c8a7ca002a557ba5f609c0 to your computer and use it in GitHub Desktop.
Save ozcanzaferayan/0ab8e38e52c8a7ca002a557ba5f609c0 to your computer and use it in GitHub Desktop.
import React from 'react';
import { AppRegistry } from 'react-native';
import { StatusBar } from 'react-native';
import { name as appName } from './app.json';
import AppNavigator from 'containers/AppNavigator';
import { createAppContainer } from 'react-navigation';
import { store } from 'store';
import { Provider } from 'react-redux';
StatusBar.setBarStyle('light-content', true);
StatusBar.backgroundColor = '#000';
const Navigation = createAppContainer(AppNavigator);
const Root = () => (
<Provider store={store}>
<Navigation />
</Provider>
);
AppRegistry.registerComponent(appName, () => Root);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment