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
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,28 @@ You can register to `ScrollViewResponder` events `onKeyboardWillShow` and `onKey
91
91
</KeyboardAwareScrollView>
92
92
```
93
93
94
+
## Android Support
95
+
First, Android natively has this feature, you can easily enable it by setting `windowSoftInputMode` in `AndroidManifest.xml`. Check [here](https://developer.android.com/guide/topics/manifest/activity-element.html#wsoft).
96
+
97
+
But if you want to use feature like `extraHeight`, you need to enable Android Support with the following steps:
98
+
99
+
- Make sure you are using react-native `0.46` or above.
100
+
- Set `windowSoftInputMode` to `adjustPan` in `AndroidManifest.xml`.
101
+
- Set `enableOnAndroid` property to `true`.
102
+
103
+
Android Suppor is not perfect, here is the support list:
104
+
105
+
| **Prop** | **Android Support** |
106
+
|----------|-----------------|
107
+
| `viewIsInsideTabBar` | Yes |
108
+
| `resetScrollToCoords` | Yes |
109
+
| `enableAutoAutomaticScroll` | Yes |
110
+
| `extraHeight` | Yes |
111
+
| `extraScrollHeight` | Yes |
112
+
| `enableResetScrollToCoords` | Yes |
113
+
| `keyboardOpeningTime` | No |
114
+
115
+
94
116
## API
95
117
### Props
96
118
All the `ScrollView`/`ListView` props will be passed.
@@ -104,6 +126,7 @@ All the `ScrollView`/`ListView` props will be passed.
104
126
| `extraScrollHeight` | `number` | Adds an extra offset to the keyboard. Useful if you want to stick elements above the keyboard. |
105
127
| `enableResetScrollToCoords` | `boolean` | Lets the user enable or disable automatic resetScrollToCoords. |
106
128
| `keyboardOpeningTime` | `number` | Sets the delay time before scrolling to new position, default is 250 |
129
+
| `enableOnAndroid` | `boolean` | Enable Android Support |
0 commit comments