/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @providesModule InputAccessoryViewExample * @flow * @format */ 'use strict'; const Alert = require('Alert'); const Button = require('Button'); const InputAccessoryView = require('InputAccessoryView'); const React = require('React'); const ScrollView = require('ScrollView'); const StyleSheet = require('StyleSheet'); const Text = require('Text'); const TextInput = require('TextInput'); const View = require('View'); class Message extends React.PureComponent<*> { render() { return ( Text Message ); } } class TextInputBar extends React.PureComponent<*, *> { state = {text: ''}; render() { return ( { this.setState({text}); }} value={this.state.text} placeholder={'Type a message...'} />