Created
May 9, 2020 14:57
-
-
Save shreyakupadhyay/59c510c73e4c9e2cdd449ab6997b1f90 to your computer and use it in GitHub Desktop.
Mount Notification module in App.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { AppRegistry, View, StyleSheet, AppState } from 'react-native'; | |
import App from './App'; | |
import React from 'react'; | |
import { Provider } from 'react-redux'; | |
import configureStore from './configureStore'; | |
import HandleNotifications from "./src/components/HandleNotifications/HandleNotifications"; | |
const store = configureStore(); | |
const AppContainer = () => | |
<Provider store={store}> | |
<View style={{ flex: 1, justifyContent: 'center', backgroundColor: 'white' }}> | |
<App/> | |
<HandleNotifications /> | |
</View> | |
</Provider>; | |
AppRegistry.registerComponent('GreatApp', () => AppContainer); // GreatApp your app name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment