Skip to content

docs(messaging): add warning for react-native-splash-screen users #3966

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Aug 15, 2020
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions packages/messaging/lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,10 @@ export namespace FirebaseMessagingTypes {
*
* See `onNotificationOpenedApp` to subscribe to when the notification is opened when the app
* is in a background state.
*
* Beware of this [issue](https://github.com/invertase/react-native-firebase/issues/3469#issuecomment-660121376) when integrating with splash screen modules. If you are using
* `react-native-splash-screen` we strongly recommend you migrate to `react-native-bootsplash`
* which is actively maintained and avoids these issues
*/
getInitialNotification(): Promise<RemoteMessage | null>;

Expand Down Expand Up @@ -653,6 +657,10 @@ export namespace FirebaseMessagingTypes {
* See `getInitialNotification` to see how to watch for when a notification opens the app from a
* quit state.
*
* Beware of this [issue](https://github.com/invertase/react-native-firebase/issues/3469#issuecomment-660121376) when integrating with splash screen modules. If you are using
* `react-native-splash-screen` we strongly recommend you migrate to `react-native-bootsplash`
* which is actively maintained and avoids these issues
*
* @param listener Called with a `RemoteMessage` when a notification press opens the application.
*/
onNotificationOpenedApp(listener: (message: RemoteMessage) => any): () => void;
Expand Down