aboutsummaryrefslogtreecommitdiff
path: root/src/App.tsx
diff options
context:
space:
mode:
authorShravya Ramesh <37447613+shravyaramesh@users.noreply.github.com>2021-01-02 07:41:03 -0800
committerGitHub <noreply@github.com>2021-01-02 10:41:03 -0500
commitecd10fc394f2d2b6be08cee55f7b9a75ab276ac7 (patch)
tree648fbb34a9ae74c96efd285db4a272f53095fc57 /src/App.tsx
parent75d5e910767f531e8261d5fd70ad427214599102 (diff)
[TMA-294] Redirecting to Notification Screen (#161)
* Added nav ref & redirect to notifScreen onTap * Added type NavigationContainerRef Co-authored-by: Ashm Walia <ashmwalia@outlook.com>
Diffstat (limited to 'src/App.tsx')
-rw-r--r--src/App.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/App.tsx b/src/App.tsx
index 92d26ba7..18fadf64 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -4,11 +4,12 @@ import Routes from './routes';
import {Provider} from 'react-redux';
import store from './store/configureStore';
import {fcmService} from './services/FCMService';
+import {navigationRef} from './RootNavigation';
const App = () => {
useEffect(() => {
fcmService.setUpPushNotifications();
- //If permissions are not there, deactivateFcmService
+ // TODO: If permissions are not there, deactivateFcmService
});
return (
@@ -16,7 +17,7 @@ const App = () => {
* This is the provider from the redux store, it acts as the root provider for our application
*/
<Provider store={store}>
- <NavigationContainer>
+ <NavigationContainer ref={navigationRef}>
<Routes />
</NavigationContainer>
</Provider>