-
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
Components translated into view are not tappable on Android #26219
Comments
Hi @lehresman, I have tested your code. I want to answer your problem but I have qusetion.
If you remove the I have concluded that the view wasn't at its correct position. You didn't give the |
@badarshahzad My use case is that I'm creating a carousel-like component where users can swipe between pages. I simplified the example here to show the problem is with Thanks for the tip on giving |
Welcome 👋 if you are going to make yours then have a look on this how they created a component. It is very good library https://github.com/archriss/react-native-snap-carousel. |
react-native-snap-carousel is very very good. my unique use case is I needed infinite scrolling in both directions, and that library doesn't work well with that. :( |
Dude customize it fork the library make changes in component and import it into your project 👍. |
Have a look https://github.com/phil-r/react-native-looped-carousel |
@badarshahzad I have looked at all of these, but sadly none of them work well when you dynamically add pages to the left side. Thanks for the tips though. |
Ok, I've tried what you suggested about setting the width/height/flex on innerContainer and outerContainer. None of that made a difference. I also tried using |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
React Native version:
Steps To Reproduce
{transform: [{translateX: #}]}
to show parts of the view that were rendered off screenDescribe what you expected to happen:
I expected consistent behavior between Android and iOS -- mainly, the parts that were translated into view should be tappable on Android.
Snack, code example, screenshot, or link to a repository:
Here is an example I created using an Expo Snack, but I don't believe it is an Expo-related issue: https://snack.expo.io/@lehresman/android-translation-example
Notice the button on the 2nd page (the green one) isn't tappable on Android, but works fine on iOS.
The text was updated successfully, but these errors were encountered: