You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Components translated into view are not tappable on Android #26219
Hi @lehresman, I have tested your code. I want to answer your problem but I have qusetion.
Can you tell me why you gave the transform: [{translateX: -200}]?
If you remove the transform: [{translateX: -200}] and gave the flex:1 in page style then both button views are working. Have look on the code.
I have concluded that the view wasn't at its correct position. You didn't give the innerContainer a style property width,height or flex which I think can be given. If you don't want to give width,height or flex to innnerContainer then at least give it to parent. I noticed outerContainer also doesn't have any property which may be causing a issue for 2nd button.
@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 translateX on Android.
Thanks for the tip on giving innerContainer height, width, or flex. I will try that shortly and report back here.
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. :(
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. :(
@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 left: -200 instead of translateX and it has the same effect. Anything outside the original view frame is not tappable on Android.
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.
Activity
badarshahzad commentedon Aug 28, 2019
Hi @lehresman, I have tested your code. I want to answer your problem but I have qusetion.
transform: [{translateX: -200}]?If you remove the
transform: [{translateX: -200}]and gave theflex:1in page style then both button views are working. Have look on the code.I have concluded that the view wasn't at its correct position. You didn't give the
innerContainera style property width,height or flex which I think can be given. If you don't want to give width,height or flex toinnnerContainerthen at least give it to parent. I noticedouterContaineralso doesn't have any property which may be causing a issue for 2nd button.lehresman commentedon Aug 28, 2019
@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
translateXon Android.Thanks for the tip on giving
innerContainerheight, width, or flex. I will try that shortly and report back here.badarshahzad commentedon Aug 28, 2019
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.
lehresman commentedon Aug 28, 2019
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. :(
badarshahzad commentedon Aug 28, 2019
Dude customize it fork the library make changes in component and import it into your project 👍.
badarshahzad commentedon Aug 28, 2019
Have a look https://github.com/phil-r/react-native-looped-carousel
lehresman commentedon Aug 28, 2019
@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.
lehresman commentedon Aug 28, 2019
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
left: -200instead oftranslateXand it has the same effect. Anything outside the original view frame is not tappable on Android.stale commentedon Nov 26, 2019
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.
stale commentedon Dec 3, 2019
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.