-
Notifications
You must be signed in to change notification settings - Fork 44
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
Overflow view is not touchable #32
Comments
try changing:
|
I have the same problem |
Same here |
basically what it seems to be that touch events are not happening inside |
my knowledge of android is java is none, but I think maybe after you set Clip
and that set touch delegate can be wrapped as
ain't sure how to solve really. I wish now I knew some more native code any help? @sibelius |
Touch-Feature is crucial for 99% of all overflow implementations. Is there really no way?? |
@michaelmika it seems to be added https://github.com/react-native-community/react-native-releases/blob/master/CHANGELOG.md#android-specific-changes-2 |
On my Project with React Native 0.57.3 overflow worked, but without animated Views and without Touch features. This module here made the animation work, but still missing touch ability. I had to refactor my code (which was working on iOS before) to not use overflow, so it also worked on android. Hope they will add real overflow functions on android in the next versions. |
I have the same problem |
@ethanyuwang Do you have any solutions? |
Anyone found a solution for this? I have the same problem. |
Yikes... this was literally the reason why I needed this library, and it seems no one has even found a workaround. Disappointing. |
I think you should try react-native-gesture-handler. Might be relevant. Not
sure though.
בתאריך יום ג׳, 26 במרץ 2019, 17:03, מאת Dror-Bar <[email protected]
…:
Yikes... this was literally the reason why I needed this library, and it
seems no one has even found a workaround. Disappointing.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#32 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AgwLcVynLMO80yA7yI0gS3-nnctWGgmvks5vajbagaJpZM4UbhFe>
.
|
@Dror-Bar you could try solving it and send a PR instead of just complain... |
@felippepuhle haha, I guess you are right. I ended up solving my use-case (masonry list) without using this library in the end. Long story short, I had overlapping views using negative margin. This allowed my (touchable) components to look like they were on top of the view above them, and the trick I used was pointerEvents='box-none' to allow the clicking event to register through the top view to the bottom view. Edit: if anyone is curious about my very specific use case, here is the full solution: https://stackoverflow.com/questions/48330207/two-columns-in-rn-flatlist/55191864#55191864 |
I believe this pull request (from the react-native repo) would fix the issue. However, it's not gaining much traction for now. |
I have wrapped the toolbar from the above picture in
ViewOverlfow
and got the modal to properly display. However, the modal is only touchable within the area of the toolbar (red rectangular), and not touchable in the blue rectangular area. Is it possible to make the entire modal touchable?Toolbar's render method:
modal's render method:
styles:
The text was updated successfully, but these errors were encountered: