react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

docs(messaging): update usage documentation with modular code examples

Open Seth-jo opened this issue 3 months ago • 3 comments

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)
  • My change includes tests;
    • [ ] e2e tests added or updated in packages/\*\*/e2e
    • [ ] jest tests added or updated in packages/\*\*/__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:

🔥

Seth-jo avatar Oct 31 '25 20:10 Seth-jo

@Seth-jo is attempting to deploy a commit to the Invertase Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 31 '25 20:10 vercel[bot]

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Oct 31 '25 20:10 CLAassistant

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

github-actions[bot] avatar Nov 28 '25 21:11 github-actions[bot]