react-native-notificare-push
Version:
Notificare Push React Native module.
21 lines (20 loc) • 787 B
JavaScript
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;
;