You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(messaging): update notification example for react-navigation v6 (#7439)
* Update notifications.md
You cannot use `useNavigation` hooks from outside of `NavigationContainer`
The properly way is to implement `linking` props of `NavigationContainer`.
Reference document: https://reactnavigation.org/docs/navigation-container#linkingsubscribe
* Reduce the example codebase
Remove PostScreen component to simplify the codebase
* Update docs/messaging/notifications.md
---------
Co-authored-by: Mike Hardy <[email protected]>
The call to `getInitialNotification` should happen within a React lifecycle method after mounting (e.g. `componentDidMount` or `useEffect`).
168
-
If it's called too soon (e.g. within a class constructor or global scope), the notification data may not be available.
169
-
170
199
**Quick Tip:** On `Android` you can test receiving remote notifications on the emulator but on `iOS` you will need to use a real device as the iOS simulator does not support receiving remote notifications.
0 commit comments