UNPKG

@react-native-firebase/messaging

Version:

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

19 lines (15 loc) 649 B
import { ConfigPlugin, withPlugins, createRunOncePlugin } from '@expo/config-plugins'; import { withExpoPluginFirebaseNotification } from './android'; import { PluginConfigType } from './pluginConfig'; /** * A config plugin for configuring `@react-native-firebase/messaging` */ const withRnFirebaseMessaging: ConfigPlugin<PluginConfigType | undefined> = (config, props) => { return withPlugins(config, [ // iOS // Android [withExpoPluginFirebaseNotification, props], ]); }; const pak = require('@react-native-firebase/messaging/package.json'); export default createRunOncePlugin(withRnFirebaseMessaging, pak.name, pak.version);