@hot-updater/react-native
Version:
React Native OTA solution for self-hosted
11 lines • 435 B
TypeScript
export type HotUpdaterState = {
progress: number;
isBundleUpdated: boolean;
};
export declare const hotUpdaterStore: {
getSnapshot: () => HotUpdaterState;
setState: (newState: Partial<HotUpdaterState>) => void;
subscribe: (listener: () => void) => () => boolean;
};
export declare const useHotUpdaterStore: <T = HotUpdaterState>(selector?: (snapshot: HotUpdaterState) => T) => T;
//# sourceMappingURL=store.d.ts.map