/** * 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. * * @format * @flow */ 'use strict'; const React = require('react'); const { Button, InputAccessoryView, Text, TextInput, View, StyleSheet, Slider, Switch, Alert, } = require('react-native'); const TextInputSharedExamples = require('./TextInputSharedExamples.js'); import type {RNTesterExampleModuleItem} from '../../types/RNTesterTypes'; class WithLabel extends React.Component<$FlowFixMeProps> { render() { return ( {this.props.label} {this.props.children} ); } } class TextInputAccessoryViewExample extends React.Component<{...}, *> { constructor(props) { super(props); this.state = {text: 'Placeholder Text'}; } render() { const inputAccessoryViewID = 'inputAccessoryView1'; return ( this.setState({text})} value={this.state.text} />