mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Extract AppState TM type for react-native-codegen (#39546)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/39546 Changelog: [Internal] Reviewed By: rshest Differential Revision: D49436860 fbshipit-source-id: d120e04f67430f66b5f1be453726b43805aeac81
This commit is contained in:
committed by
Facebook GitHub Bot
parent
27979dcd21
commit
f31dada1b7
@@ -16,10 +16,12 @@ export type AppStateConstants = {|
|
||||
initialAppState: string,
|
||||
|};
|
||||
|
||||
export type AppState = {|app_state: string|};
|
||||
|
||||
export interface Spec extends TurboModule {
|
||||
+getConstants: () => AppStateConstants;
|
||||
+getCurrentAppState: (
|
||||
success: (appState: {|app_state: string|}) => void,
|
||||
success: (appState: AppState) => void,
|
||||
error: (error: Object) => void,
|
||||
) => void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user