UNPKG

@iterable/react-native-sdk

Version:
26 lines (24 loc) 941 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RNIterableAPI = void 0; var _reactNative = require("react-native"); const LINKING_ERROR = `The package '@iterable/react-native-sdk' doesn't seem to be linked. Make sure: \n\n` + _reactNative.Platform.select({ ios: "- You have run 'pod install'\n", default: '' }) + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n'; /** * A bridge between React Native and the native Iterable SDK. * * If the module is not available, it throws an error when accessed. * * @type {object} * @throws {Error} Throws an error if the RNIterableAPI module is not linked properly. */ const RNIterableAPI = exports.RNIterableAPI = _reactNative.NativeModules.RNIterableAPI ? _reactNative.NativeModules.RNIterableAPI : new Proxy({}, { get() { throw new Error(LINKING_ERROR); } }); //# sourceMappingURL=RNIterableAPI.js.map