meliorence / meliorence/react-native-snap-carousel
Rendering within TouchableNativeFeedback causes component to quit working
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 10.5k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Is this a bug report, a feature request, or a question?
bug report
Have you followed the required steps before opening a bug report?
(Check the step you've followed - put an x character between the square brackets ([]).)
- [] I have read the guidelines regarding bug report.
- [] I have reviewed the documentation in its entirety, including the dedicated documentations 📚.
- [] I have searched for existing issues and made sure that the problem hasn't already been reported.
- [] I am using the latest plugin version.
- [] I am following the issue template closely in order to produce a useful bug report.
Have you made sure that it wasn't a React Native bug?
There are no issues for TouchableNativeFeedback
Is the bug specific to iOS or Android? Or can it be reproduced on both platforms?
I have only tested on iOS@14
(Write your answer here and specify the iOS/Android versions on which you've been able to reproduce the issue.)
Is the bug reproductible in a production environment (not a debug one)?
I used a TouchableOpacity here because TouchableNativeFeedback does not work on snack
https://snack.expo.io/@patrickwml/carousel-simple-example
Environment
Expo CLI 3.28.5 environment info:
System:
OS: macOS 10.15.7
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 12.19.0 - /usr/local/bin/node
npm: 6.14.8 - /usr/local/bin/npm
Managers:
CocoaPods: 1.10.0 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.1, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
IDEs:
Xcode: 12.1/12A7403 - /usr/bin/xcodebuild
npmPackages:
expo: ~39.0.2 => 39.0.4
react: 16.13.1 => 16.13.1
react-dom: 16.13.1 => 16.13.1
react-native: https://github.com/expo/react-native/archive/sdk-39.0.4.tar.gz => 0.63.2
react-native-web: ~0.13.12 => 0.13.18
npmGlobalPackages:
expo-cli: 3.28.5
Expo Workflow: managed
Expected Behavior
The carousel should work within a Touchable
Actual Behavior
The Carousel does not work within a touchable
Reproducible Demo
I used a TouchableOpacity here because TouchableNativeFeedback does not work on snack
https://snack.expo.io/@patrickwml/carousel-simple-example
Steps to Reproduce
View Demo
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked Expo Snack reproduction and compare the carousel behavior when wrapped in TouchableOpacity or TouchableNativeFeedback. No repository file or test is named; done would mean identifying the cause and making the carousel work inside a touchable on the reported iOS environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native
- Domain
- frontend, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100