You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
A ScrollView component that handles keyboard appearance.
3
3
4
4
## Installation
5
-
You can install this component through ``npm``:
5
+
You need `react-native>=0.12.0` to use this library. Installation can be done through ``npm``:
6
6
7
7
```shell
8
8
npm i react-native-keyboard-aware-scroll-view --save
@@ -32,6 +32,24 @@ import { KeyboardAwareScrollView } from 'react-native-keyboard-aware-scroll-view
32
32
The component accepts the experimental prop ``viewIsInsideTabBar``, which tries
33
33
to solve resizing issues when rendering inside a ``TabBar`` component.
34
34
35
+
## Auto-scroll in `TextInput` fields
36
+
In order to perform an auto-scroll whenever a `TextInput` field gets focused, you can use the built-in method `scrollToFocusedInput`. Define the following function for each of your `onFocus` event on your inputs:
0 commit comments