Skip to content

Commit c9a05e3

Browse files
Support IQKeyboardManager #2
1 parent f81cfb2 commit c9a05e3

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,16 @@ npm i
207207
npm run demo-vue.ios # or .android
208208
```
209209

210+
## What about IQKeyboardManager?
211+
If you have [IQKeyboardManager](https://github.com/tjvantoll/nativescript-IQKeyboardManager) installed for better
212+
keyboard behavior on iOS, then this plugin will detect it and add the height of your custom toolbar to the scroll offset
213+
IQKeyboardManager applies. You can see this in action in the [NativeScript Core demo app](/demo).
214+
215+
Note that you may want to suppress IQKeyboardManager's own toolbar in this case (to avoid a double toolbar), as shown [here](https://github.com/EddyVerbruggen/nativescript-keyboard-toolbar/blob/f81cfb2e5c84fda16e8e735bf34b1030a8b5eeb6/demo/app/main-view-model.ts#L32-L33).
216+
210217
## Future work
211218
- `SearchBar` support.
212219
- Orientation-change support.
213220
- Dismiss keyboard on iOS when tapping outside the keyboard (configurable).
214-
- Auto-scroll the view if the keyboard overlaps the text field.
215-
- Modal support on Android (currently you can't use the toolbar in a modal because the toolbar is behind the modal)
221+
- Auto-scroll the view if the keyboard overlaps the text field (on iOS you can already do that with [IQKeyboardManager](https://github.com/tjvantoll/nativescript-IQKeyboardManager)).
222+
- Modal support on Android (currently you can't use the toolbar in a modal because the toolbar is behind the modal)

0 commit comments

Comments
 (0)