UNPKG

react-native-notificare-push

Version:
33 lines (32 loc) 1.09 kB
"use strict"; /* eslint-disable @typescript-eslint/no-unused-vars */ Object.defineProperty(exports, "__esModule", { value: true }); exports.withNotificarePushAndroidManifest = void 0; const plugin_1 = require("react-native-notificare/lib/plugin"); const withRemoteMessageTrampoline = (config, props) => { const intent = { enabled: true, intentFilter: { action: [ { $: { 'android:name': 're.notifica.intent.action.RemoteMessageOpened', }, }, ], category: [ { $: { 'android:name': 'android.intent.category.DEFAULT', }, }, ], }, }; return (0, plugin_1.processIntentFilter)(config, intent); }; const withNotificarePushAndroidManifest = (config, props) => { config = withRemoteMessageTrampoline(config, props); return config; }; exports.withNotificarePushAndroidManifest = withNotificarePushAndroidManifest;