UNPKG

one

Version:

One is a React framework for web, iOS, and Android apps.

17 lines (14 loc) • 787 B
import { Platform } from "react-native"; import { NitroModules } from "react-native-nitro-modules"; import { rethrowNativeError } from "../nativeError.native.js"; import { StoreReview as StoreReview$1 } from "./unavailable.native.js"; var hybrid; function requestReview() { if (Platform.OS !== "ios" && Platform.OS !== "android") throw new Error("StoreReview requires a native build"); hybrid !== null && hybrid !== void 0 ? hybrid : hybrid = NitroModules.createHybridObject("OneStoreReview"); return hybrid.requestReview().catch(rethrowNativeError); } var nativeStoreReview = Object.freeze({ requestReview }); var StoreReview = Platform.OS === "ios" || Platform.OS === "android" ? nativeStoreReview : StoreReview$1; export { StoreReview }; //# sourceMappingURL=index.native.js.map