1/** 2 * Copyright (c) Meta Platforms, Inc. and affiliates. 3 * 4 * This source code is licensed under the MIT license found in the 5 * LICENSE file in the root directory of this source tree. 6 * 7 * @format 8 */ 9 10import type * as React from 'react'; 11import {ColorValue, StyleProp} from '../../StyleSheet/StyleSheet'; 12import {ViewStyle} from '../../StyleSheet/StyleSheetTypes'; 13 14/** 15 * A component which enables customization of the keyboard input accessory view on iOS. The input accessory view is 16 * displayed above the keyboard whenever a TextInput has focus. This component can be used to create custom toolbars. 17 * 18 * To use this component wrap your custom toolbar with the InputAccessoryView component, and set a nativeID. Then, pass 19 * that nativeID as the inputAccessoryViewID of whatever TextInput you desire. 20 */ 21export class InputAccessoryView extends React.Component<InputAccessoryViewProps> {} 22 23export interface InputAccessoryViewProps { 24 backgroundColor?: ColorValue | undefined; 25 26 children?: React.ReactNode | undefined; 27 28 /** 29 * An ID which is used to associate this InputAccessoryView to specified TextInput(s). 30 */ 31 nativeID?: string | undefined; 32 33 style?: StyleProp<ViewStyle> | undefined; 34} 35