UNPKG

react-native-android-sms-retriever-api

Version:
15 lines (14 loc) 625 B
"use strict"; import { Platform } from 'react-native'; import NativeAndroidSmsRetriever from "./NativeAndroidSmsRetriever.js"; const LINKING_ERROR = `The package 'react-native-android-sms-retriever-api' doesn't seem to be linked. Make sure: \n\n` + '- You rebuilt the app after installing the package\n' + '- You are not using Expo Go\n'; const AndroidSmsRetriever = NativeAndroidSmsRetriever ? NativeAndroidSmsRetriever : new Proxy({}, { get() { if (Platform.OS === 'android') { throw new Error(LINKING_ERROR); } return null; } }); export default AndroidSmsRetriever; //# sourceMappingURL=index.js.map