Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android no UIManager.viewIsDescendantOf #63

Closed
onepiece-dz opened this issue Sep 14, 2016 · 3 comments
Closed

android no UIManager.viewIsDescendantOf #63

onepiece-dz opened this issue Sep 14, 2016 · 3 comments

Comments

@onepiece-dz
Copy link

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?

@IkeLutra
Copy link

IkeLutra commented Nov 1, 2016

I got this issue because my react native version was outdated so worth checking. 0.2.0 support RN ~0.32.0

@atlas1119
Copy link

image

react native 0.44.0, this react-native-keyboard-aware-scroll-view version is 0.2.9

@Swordsman-Inaction
Copy link
Collaborator

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants