-
Notifications
You must be signed in to change notification settings - Fork 99
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
Cannot tap element on renderFixedForeground #6
Comments
Hello, Unfortunately, I don't know how to fix your problem. I haven't any idea of implementation which is good on android and allow you to set Touchable in the fixedForeground. Nevertheless, I changed the foreground to be rendered above the scrollView in the 0.5.0 version. So, if it's possible for you, you can add your button in the |
+1 |
+1 |
But after I upgrade to V0.6.0 and use the |
The Basic usage example still works for me. Can I see your code ? |
I tried to work on that issue today, but with no success. I guess I need help to find a solution. The following schemas represent the current implementation of the module after a small scroll.
The legend :
As you see, the scrollVIew is above the header and the fixed foreground. That's why we can't press on it. The scrollView take the event from the Responder system. If you want to see the code with the color : #21 In the previous implementation, the header was above the scrollView (same legend)
I reduce the height of the header container (in red) on scroll. The header container have an Everything stay touchable but it is very laggy. I guess it is related to the image rerendering or too much time between the ScrollView event. @tychota @Almouro @yleflour @4ian Anyone of you have an Idea on what I can do ? |
Cc @brentvatne, do you have any idea? We spoke about those kind of animation a while ago and you told me of a bug in RN and a way to bypass it. |
I maybe gonna try a new implementation with https://github.com/cesardeazevedo/react-native-nested-scroll-view but i will add a native dependency |
@Nhacsam any news about this issue? thanks! |
Unfortunately no. Still have no solution for this :/ |
Hi, tanks for this amazing component.
I'm having an issue tapping on a button inside the renderFixedForeground.
When I scroll down and the header collapses, it works perfectly.
In the following example you can see that the button is not tappable until you scroll all the way down.
Thanks in advance.
The text was updated successfully, but these errors were encountered: