Messaging
@react-native-firebase/messaging
React Native Firebase - React Native Firebase provides native integration of Firebase Cloud Messaging (FCM) for both Android & iOS. FCM is a cost free service, allowing for server-device and device-device communication. The React Native Firebase Messaging
React Native Libraries
react
react-native
firebase
messaging
@react-native-firebase/messaging
React Native Libraries
javascript
npm
frontend
open source
Stars
12k
Weekly
777k
Open issues
40
Bundle
~25 kB
Installation
npm install @react-native-firebase/messagingCode example
import { View, Text, StyleSheet } from "react-native";
import { Messaging } from "@react-native-firebase/messaging";
export function Example() {
return (
<View style={styles.box}>
<Text style={styles.title}>Messaging</Text>
<Messaging />
</View>
);
}
const styles = StyleSheet.create({
box: { flex: 1, alignItems: "center", justifyContent: "center", gap: 8 },
title: { fontSize: 18, fontWeight: "600" },
});Pros & cons
Pros
- Actively maintained by Invertase
- 777k weekly downloads. Battle tested
- First-class TypeScript definitions
- Apache-2.0 licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- 40 open issues on GitHub