UNPKG

react-native-windows

Version:
25 lines (18 loc) 738 B
/** * @flow * @format */ import type {HostComponent} from '../../Renderer/shims/ReactNativeTypes'; const requireNativeComponent = require('../../ReactNative/requireNativeComponent'); import codegenNativeCommands from '../../Utilities/codegenNativeCommands'; import type {TextInputNativeCommands} from './TextInputNativeCommands'; type NativeType = HostComponent<mixed>; type NativeCommands = TextInputNativeCommands<NativeType>; export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({ supportedCommands: ['focus', 'blur', 'setTextAndSelection'], }); const WindowsTextInputComponent: NativeType = requireNativeComponent<mixed>( 'RCTTextInput', ); export default WindowsTextInputComponent; // [Windows]