@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
18 lines (14 loc) • 532 B
text/typescript
import { ConfigPlugin, withPlugins, createRunOncePlugin } from '@expo/config-plugins';
import { withExpoPluginFirebaseNotification } from './android';
/**
* A config plugin for configuring `@react-native-firebase/app`
*/
const withRnFirebaseApp: ConfigPlugin = config => {
return withPlugins(config, [
// iOS
// Android
withExpoPluginFirebaseNotification,
]);
};
const pak = require('@react-native-firebase/messaging/package.json');
export default createRunOncePlugin(withRnFirebaseApp, pak.name, pak.version);