@hot-updater/react-native
Version:
React Native OTA solution for self-hosted
20 lines • 629 B
TypeScript
import type { TurboModule } from "react-native";
export interface UpdateBundleParams {
bundleId: string;
fileUrl: string | null;
}
export interface Spec extends TurboModule {
reload(): void;
updateBundle(params: UpdateBundleParams): Promise<boolean>;
addListener(eventName: string): void;
removeListeners(count: number): void;
readonly getConstants: () => {
MIN_BUNDLE_ID: string;
APP_VERSION: string | null;
CHANNEL: string;
FINGERPRINT_HASH: string | null;
};
}
declare const _default: Spec;
export default _default;
//# sourceMappingURL=NativeHotUpdater.d.ts.map