Skip to content

Instantly share code, notes, and snippets.

@shreyakupadhyay
Created May 9, 2020 14:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shreyakupadhyay/59c510c73e4c9e2cdd449ab6997b1f90 to your computer and use it in GitHub Desktop.
Save shreyakupadhyay/59c510c73e4c9e2cdd449ab6997b1f90 to your computer and use it in GitHub Desktop.
Mount Notification module in App.js
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