react-native-gifted-chat
Version:
The most complete chat UI for React Native
25 lines (21 loc) • 709 B
Flow
// @flow
import { TextInput } from 'react-native'
import * as React from 'react'
type TextInputProps = $Shape<React.ElementProps<typeof TextInput>>
export type ComposerProps = $ReadOnly<{|
composerHeight?: number,
text?: string,
placeholder?: string,
placeholderTextColor?: string,
textInputProps?: TextInputProps,
textInputStyle?: $PropertyType<TextInputProps, 'style'>,
textInputAutoFocus?: boolean,
keyboardAppearance?: $PropertyType<TextInputProps, 'keyboardAppearance'>,
multiline?: boolean,
onTextChanged?: string => void,
onInputSizeChanged?: ({|
width: number,
height: number,
|}) => void,
|}>
export default class Composer extends React.Component<ComposerProps> {}