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
The android version no UIManager.viewIsDescendantOf method. So
// Automatically scroll to focused TextInput
if (this.props.enableAutoAutomaticScroll) {
const currentlyFocusedField = TextInput.State.currentlyFocusedField()
if (!currentlyFocusedField) {
return
}
UIManager.viewIsDescendantOf(
currentlyFocusedField,
this.getScrollResponder().getInnerViewNode(),
(isAncestor) => {
if (isAncestor) {
this.scrollToFocusedInputWithNodeHandle(currentlyFocusedField)
}
}
)
}
this code has problem. How solve it?
The text was updated successfully, but these errors were encountered:
facebook/react-native#13129 has been merged, so Android will have UIManager.viewIsDescendantOf on 0.45. And I'll add Android support later.
@atlas1119 It's weird. The updateKeyboardSpace should never be called on Android since there is no keyboardWillShow event on Android. How did you get this?
The android version no UIManager.viewIsDescendantOf method. So
// Automatically scroll to focused TextInput
if (this.props.enableAutoAutomaticScroll) {
const currentlyFocusedField = TextInput.State.currentlyFocusedField()
if (!currentlyFocusedField) {
return
}
UIManager.viewIsDescendantOf(
currentlyFocusedField,
this.getScrollResponder().getInnerViewNode(),
(isAncestor) => {
if (isAncestor) {
this.scrollToFocusedInputWithNodeHandle(currentlyFocusedField)
}
}
)
}
this code has problem. How solve it?
The text was updated successfully, but these errors were encountered: