docs(messaging): update usage documentation with modular code examples
Description
This PR updates the usage section of the Cloud Messaging documentation examples to use the modular API instead of the deprecated namespaced API.
The documentation currently uses the namespaced API in all its examples. With the incoming deprecation of the namespaced API, usage of the modular API is the better practice. As such, the documentation should reflect this.
I found it difficult uplifting to Expo SDK 53 and updating my code without examples to utilise - just using the Firebase docs does not feel as intuitive as examples from the actual implementation.
Within the PR, I just updated the current examples in Usage to use the modular API.
Related issues
Fixes #8710
Release Summary
Checklist
- I read the Contributor Guide and followed the process outlined there for submitting PRs.
- [X] Yes
- My change supports the following platforms;
- [X]
Android - [X]
iOS - [ ]
Other(macOS, web)
- [X]
- My change includes tests;
- [ ]
e2etests added or updated inpackages/\*\*/e2e - [ ]
jesttests added or updated inpackages/\*\*/__tests__
- [ ]
- [ ] I have updated TypeScript types that are affected by my change.
- This is a breaking change;
- [ ] Yes
- [X] No
Test Plan
This is only a change to the documentation - no functional changes were made.
Think react-native-firebase is great? Please consider supporting the project with any of the below:
- 👉 Star this repo on GitHub ⭐️
- 👉 Follow
React Native FirebaseandInvertaseon Twitter
🔥
@Seth-jo is attempting to deploy a commit to the Invertase Team on Vercel.
A member of the Team first needs to authorize it.
Hello 👋, this PR has been opened for more than 2 months with no activity on it.
If you think this is a mistake please comment and ping a maintainer to get this merged ASAP! Thanks for contributing!
You have 15 days until this gets closed automatically