import { NativeModules, Platform } from "react-native"; const LINKING_ERROR = `The package 'mychips-react-sdk' doesn't seem to be linked. Make sure: \n\n` + 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"; const MychipsReactSdk = NativeModules.MychipsReactSdk ? NativeModules.MychipsReactSdk : new Proxy( {}, { get() { throw new Error(LINKING_ERROR); }, }, ); // Traditional Offerwall public API. Existing package-root names are preserved. export { MCOfferwallSDK, MCOfferwallView, RewardDTO, MCGenderEnum, } from "./offerwall"; export type { MCOfferwallViewHandle } from "./offerwall"; // Native Campaigns package-root public API. export { MCNativeAdView, MCCampaignType, MCCampaignStatus } from "./nativesdk"; export type { // NATIVE CAMPAIGNS: ADDED MCDefaultCardStyles, MCNativeAdViewHandle, MCNativeAdViewProps, MCCampaign, MCCampaignResponse, MCCreatives, MCLinks, MCMeta, MCProgress, } from "./nativesdk"; // Preserve the original native-module default export. export default MychipsReactSdk;