KeyboardTrackingView
A UI component that enables 'keyboard tracking' for this view and it's sub-views.
Would typically be used when you have a TextField or TextInput inside this view.
(code example)
This view is useful only for iOS.
Usageβ
<KeyboardTrackingView style={} trackInteractive useSafeArea > </KeyboardTrackingView>
APIβ
addBottomViewβ
iOS onlyβ
Add a view beneath the KeyboardAccessoryView.
boolean
allowHitsOutsideBoundsβ
iOS onlyβ
Allow hitting sub-views that are placed beyond the view bounds.
boolean
bottomViewColorβ
iOS onlyβ
The bottom view's color.
string
manageScrollViewβ
iOS onlyβ
Set to false to turn off inset management and manage it yourself.
boolean
refβ
any
requiresSameParentToManageScrollViewβ
iOS onlyβ
Set to true manageScrollView is set to true and still does not work,
it means that the ScrollView found is the wrong one and you'll have
to have the KeyboardAccessoryView and the ScrollView as siblings
and set this to true.
boolean
revealKeyboardInteractiveβ
iOS onlyβ
Show the keyboard on a negative scroll.
boolean
scrollBehaviorβ
iOS onlyβ
The scrolling behavior (use KeyboardTrackingView.scrollBehaviors.NONE | SCROLL_TO_BOTTOM_INVERTED_ONLY | FIXED_OFFSET)
number
scrollToFocusedInputβ
Should the scrollView scroll to the focused input
boolean
styleβ
ViewStyle
trackInteractiveβ
Enables tracking of the keyboard when it's dismissed interactively (false by default).
Why? When using an external keyboard (BT),
you still get the keyboard events and the view just hovers when you focus the input.
Also, if you're not using interactive style of dismissing the keyboard
(or if you don't have an input inside this view) it doesn't make sense to track it anyway.
(This is caused because of the usage of inputAccessory to be able to track the keyboard interactive change and it introduces this bug)
boolean
useSafeAreaβ
iOS onlyβ
Whether or not to handle SafeArea.
boolean
usesBottomTabsβ
iOS onlyβ
Whether or not to include bottom tab bar inset.
boolean