UNPKG

react-native-repro

Version:

Repro is a mobile analytics tool that lets you have much deeper understanding of mobile app users.

27 lines (24 loc) 992 B
import type { TurboModule } from "react-native/Libraries/TurboModule/RCTExport"; import { TurboModuleRegistry } from "react-native"; export interface Spec extends TurboModule { getConstants(): { REMOTE_CONFIG_SUCCESS: number; REMOTE_CONFIG_TIMEOUT_REACHED: number; REMOTE_CONFIG_ALREADY_FETCHED: number; FETCH_STATUS: { REMOTE_CONFIG_SUCCESS: number; REMOTE_CONFIG_FAILURE: number; REMOTE_CONFIG_NO_CHANGE: number; }; } fetch(timeout: number, callback: () => void): void; activateFetched(): void; setDefaultsFromDictionary(values: Object): void; setDefaultsFromJsonString(jsonStr: string): void; getValue(key: string, callback: () => void): void; getAllValues(callback: () => void): void; getAllValuesWithPrefix(prefix: string, callback: () => void): void; getLocalDefaultValue(key: string, callback: () => void): void; forceReset(): void; } export default TurboModuleRegistry.get<Spec>("ReproRemoteConfigBridge") as Spec | null;