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:
Christoph Purrer
2023-09-20 08:59:42 -07:00
committed by Facebook GitHub Bot
parent 27979dcd21
commit f31dada1b7
+3 -1
View File
@@ -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;