UNPKG

react-native-notificare-push

Version:
21 lines (20 loc) 787 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.withNotificarePushIOSEnvironment = void 0; const config_plugins_1 = require("expo/config-plugins"); const withAPNSEnvironment = (config, props) => { return (0, config_plugins_1.withEntitlementsPlist)(config, (plist) => { if (props?.ios?.mode) { plist.modResults['aps-environment'] = props.ios.mode; } else { throw new Error('Property "mode" is not set in "react-native-notificare-push" plugin.'); } return plist; }); }; const withNotificarePushIOSEnvironment = (config, props) => { config = withAPNSEnvironment(config, props); return config; }; exports.withNotificarePushIOSEnvironment = withNotificarePushIOSEnvironment;