Uh oh!
There was an error while loading. Please reload this page.
Add Clarification to Docs - Views are not clickable if parent has height of 0 - #2537
Conversation
The touch area never extends past the parent view bounds and the Z-index of sibling views always takes precedence if a touch hits two overlapping views.
we could consider adding additional warning about this limitation in https://reactnative.dev/docs/style
Deploy preview for react-native ready! Built with commit b4661f6 |
Deploy preview for react-native ready! Built with commit 377c28a |
In some cases React Native does not match how CSS works on the web react/react-native#25441 (comment)
Simek
left a comment
There was a problem hiding this comment.
Hi @fabriziobertoglio1987, thank you so much on working on those notes! 👍
In the other hand I think that putting the issues notes at the top of the page or article doesn't look that good, also bring too much attention of regular users.
Can you move the notes to the "Know Issues" section at the end of each page or at least the note boxes at the end of relevant section?
This pattern has been utilized already, examples:
Simek
left a comment
There was a problem hiding this comment.
Thank you for the review updates! 👍
Thanks a lot for merging the PR 🙏 ☮️ and for your feedback |
fixesreact/react-native#29308fixesreact/react-native#25441fixesreact/react-native#28694fixesreact/react-native#27333
Adding further notice in the docs to help developers troubleshoot the following issues:
Explanation On Android, TextInputs within a
position: absoluteview that's inside another view with onLayout can't be focused react-native#29308 (comment)Related issues On Android, TextInputs within a
position: absoluteview that's inside another view with onLayout can't be focused react-native#29308Touch events in nested absolute positioned views not working on Android react-native#27333Explanation https://stackoverflow.com/a/10673572
Related issues TouchableOpacity not clickable with negative margin on Android react-native#25441Android: Overlap TouchableOpacity and View behave differently when there is backgroundColor style react-native#28694
Hopefully adding this clarification in the docs will help developer troubleshoot their issues, the warning was included already in the docs.
I added the warnings in two places: