expo-updates
Version:
Fetches and manages remotely-hosted assets and updates to your app's JS bundle.
22 lines • 834 B
TypeScript
import type { UpdatesNativeStateChangeEvent, UpdatesNativeStateMachineContext } from './Updates.types';
export declare let latestContext: UpdatesNativeStateMachineContext;
interface UpdatesStateChangeSubscription {
remove(): void;
}
/**
* Add listener for state change events
* @hidden
*/
export declare const addUpdatesStateChangeListener: (listener: (event: UpdatesNativeStateChangeEvent) => void) => UpdatesStateChangeSubscription;
/**
* Allows JS test to emit a simulated native state change event (used in unit testing)
* @hidden
*/
export declare const emitTestStateChangeEvent: (event: UpdatesNativeStateChangeEvent) => void;
/**
* Allows JS test to reset latest context (and sequence number)
* @hidden
*/
export declare const resetLatestContext: () => void;
export {};
//# sourceMappingURL=UpdatesEmitter.d.ts.map