import PropTypes from 'prop-types'; import React from 'react'; import { TextInputProps } from 'react-native'; interface ComposerProps { composerHeight?: number; text?: string; placeholder?: string; placeholderTextColor?: string; textInputProps?: Partial; textInputStyle?: TextInputProps['style']; textInputAutoFocus?: boolean; keyboardAppearance?: TextInputProps['keyboardAppearance']; multiline?: boolean; onTextChanged?(text: string): void; onInputSizeChanged?(contentSize: { width: number; height: number; }): void; } export default class Composer extends React.Component { static defaultProps: { composerHeight: number; text: string; placeholderTextColor: string; placeholder: string; textInputProps: null; multiline: boolean; textInputStyle: {}; textInputAutoFocus: boolean; keyboardAppearance: string; onTextChanged: () => void; onInputSizeChanged: () => void; }; static propTypes: { composerHeight: PropTypes.Requireable; text: PropTypes.Requireable; placeholder: PropTypes.Requireable; placeholderTextColor: PropTypes.Requireable; textInputProps: PropTypes.Requireable; onTextChanged: PropTypes.Requireable<(...args: any[]) => any>; onInputSizeChanged: PropTypes.Requireable<(...args: any[]) => any>; multiline: PropTypes.Requireable; textInputStyle: PropTypes.Requireable; textInputAutoFocus: PropTypes.Requireable; keyboardAppearance: PropTypes.Requireable; }; contentSize?: { width: number; height: number; }; onContentSizeChange: (e: any) => void; onChangeText: (text: string) => void; render(): JSX.Element; } export {};