Yukiya Nakagawa
|
4c918ffb9b
|
fix: fix TypeScript typings for TextInput methods (#753)
### 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();
}
```
|
2019-01-24 10:59:28 +01:00 |
|