react-native/Libraries/Components/TextInput/RCTInputAccessoryViewNative...

35 lines
901 B
JavaScript

/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
'use strict';
import type {NativeComponent} from 'ReactNative';
import type {ColorValue} from 'StyleSheetTypes';
import type {ViewStyleProp} from 'StyleSheet';
const React = require('React');
const requireNativeComponent = require('requireNativeComponent');
type NativeProps = $ReadOnly<{|
+children: React.Node,
/**
* An ID which is used to associate this `InputAccessoryView` to
* specified TextInput(s).
*/
nativeID?: ?string,
style?: ?ViewStyleProp,
backgroundColor?: ?ColorValue,
|}>;
type NativeInputAccessoryView = Class<NativeComponent<NativeProps>>;
module.exports = ((requireNativeComponent(
'RCTInputAccessoryView',
): any): NativeInputAccessoryView);