-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
InputAccessoryView doesn't work inside React Native Modal #21363
Comments
Facing the same issue. Any idea? |
Just ran into this. |
Best I Could DoI'm not proficient with Objective-C and I had a friend look this over with me. From what I could tell, it seems like react-native/Libraries/Text/TextInput/RCTBaseTextInputView.m Lines 478 to 485 in 630e9fa
Also found this. Perhaps the react-native/React/Views/RCTComponent.h Lines 51 to 56 in 630e9fa
UI Heirarchy ScreenshotsThe InputAccessoryView simply doesn't get inserted into |
So I did some xcode debugging and found that it's searching the wrong root view. I'm further convinced that this section of code is the issue. I think that Modals aren't adhering to the reactTag pattern here. This would lead a Modal to not be counted as a root view (because, perhaps, it has a reactTag of 22 or 12 instead of 21 or 11) and for the app to keep looking. Once a react-native/React/Views/RCTComponent.h Lines 51 to 56 in 630e9fa
Here's the code that goes looking react-native/Libraries/Text/TextInput/RCTBaseTextInputView.m Lines 472 to 488 in 630e9fa
|
I'm facing the same issue and it's actually blocking in my situation. Are there any ways to workaround this issue? |
any news on this? i'm facing the problem as the numeric textinput is inside a modal and it's blocking me |
@euroclydon37 are you able to preare a PR with a fix using your findings? |
This is a real bug but it is unlikely we'll be able to spend any time on a fix so I'm going to close this issue. It seems that you already have a way to fix it so if you could send a Pull Request, we are happy to review and land it. |
I know this is closed but am blocked by this myself and would love a fix. @euroclydon37 any chance of a PR? |
Interested as well! I'm running into this problem |
any update with this ? |
Environment
Environment:
OS: macOS Sierra 10.12.6
Node: 8.6.0
Yarn: 1.7.0
npm: 5.3.0
Watchman: 4.9.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz => https://github.com/expo/react-native/archive/sdk-30.0.0.tar.gz
Description
InputAccessoryView doesn't work when used inside a react-native Modal.
Reproducible Demo
https://snack.expo.io/@kadoshms/inputaccessoryview-inside-modal
The text was updated successfully, but these errors were encountered: