mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-19 01:46:37 +08:00
### Motivation * paper version: v2.6.1 * typescript version: v3.2.2 The `TextInput` class has public methods `isFocused`, `clear`, `focus`, `blur`. https://github.com/callstack/react-native-paper/blob/v2.6.1/src/components/TextInput.js#L348-L374 However, they are not declared in d.ts as below.  ### Test plan Typecheck for below function. ```typescript import { TextInput } from "react-native-paper"; function doAnything(textInput: TextInput) { textInput.isFocused(); textInput.clear(); textInput.focus(); textInput.blur(); } ```