@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
17 lines (16 loc) • 648 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const config_plugins_1 = require("@expo/config-plugins");
const android_1 = require("./android");
/**
* A config plugin for configuring `@react-native-firebase/messaging`
*/
const withRnFirebaseMessaging = (config, props) => {
return (0, config_plugins_1.withPlugins)(config, [
// iOS
// Android
[android_1.withExpoPluginFirebaseNotification, props],
]);
};
const pak = require('@react-native-firebase/messaging/package.json');
exports.default = (0, config_plugins_1.createRunOncePlugin)(withRnFirebaseMessaging, pak.name, pak.version);