1 | import React from 'react';
|
2 | import PropTypes from 'prop-types';
|
3 | import { TextInputProps } from 'react-native';
|
4 | export interface ComposerProps {
|
5 | composerHeight?: number;
|
6 | text?: string;
|
7 | placeholder?: string;
|
8 | placeholderTextColor?: string;
|
9 | textInputProps?: Partial<TextInputProps>;
|
10 | textInputStyle?: TextInputProps['style'];
|
11 | textInputAutoFocus?: boolean;
|
12 | keyboardAppearance?: TextInputProps['keyboardAppearance'];
|
13 | multiline?: boolean;
|
14 | disableComposer?: boolean;
|
15 | onTextChanged?(text: string): void;
|
16 | onInputSizeChanged?(layout: {
|
17 | width: number;
|
18 | height: number;
|
19 | }): void;
|
20 | }
|
21 | export declare function Composer({ composerHeight, disableComposer, keyboardAppearance, multiline, onInputSizeChanged, onTextChanged, placeholder, placeholderTextColor, text, textInputAutoFocus, textInputProps, textInputStyle, }: ComposerProps): React.ReactElement;
|
22 | export declare namespace Composer {
|
23 | var propTypes: {
|
24 | composerHeight: PropTypes.Requireable<number>;
|
25 | text: PropTypes.Requireable<string>;
|
26 | placeholder: PropTypes.Requireable<string>;
|
27 | placeholderTextColor: PropTypes.Requireable<string>;
|
28 | textInputProps: PropTypes.Requireable<object>;
|
29 | onTextChanged: PropTypes.Requireable<(...args: any[]) => any>;
|
30 | onInputSizeChanged: PropTypes.Requireable<(...args: any[]) => any>;
|
31 | multiline: PropTypes.Requireable<boolean>;
|
32 | disableComposer: PropTypes.Requireable<boolean>;
|
33 | textInputStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
|
34 | textInputAutoFocus: PropTypes.Requireable<boolean>;
|
35 | keyboardAppearance: PropTypes.Requireable<string>;
|
36 | };
|
37 | }
|