mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
xplat/js/react-native-github
Reviewed By: panagosg7 Differential Revision: D16657770 fbshipit-source-id: 4e260842c838a35317515044c54ccf55a083da33
This commit is contained in:
committed by
Facebook Github Bot
parent
9127fb51fc
commit
91f139b941
@@ -10,17 +10,17 @@
|
||||
|
||||
'use strict';
|
||||
|
||||
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
||||
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
||||
import * as React from 'react';
|
||||
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
|
||||
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
|
||||
import type {
|
||||
WithDefault,
|
||||
DirectEventHandler,
|
||||
Int32,
|
||||
Float,
|
||||
} from 'react-native/Libraries/Types/CodegenTypes';
|
||||
import type {ColorValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
|
||||
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
||||
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
||||
import * as React from 'react';
|
||||
|
||||
type DrawerStateEvent = $ReadOnly<{|
|
||||
drawerState: Int32,
|
||||
@@ -113,7 +113,7 @@ type NativeProps = $ReadOnly<{|
|
||||
statusBarBackgroundColor?: ?ColorValue,
|
||||
|}>;
|
||||
|
||||
export const Commands = codegenNativeCommands<NativeCommands>({
|
||||
export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
||||
supportedCommands: ['openDrawer', 'closeDrawer'],
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user