-
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
Rotated TouchableOpacity crashes on Android when selected. #19931
Comments
FYI, |
I can confirm this issue. It also crashes with |
I confirm this issue on RN 0.55. I may add that a rotated TouchableOpacity loses its touchable behavior when this crash. WorkaroundConditionally use radians, they get converted to double without error.
Plus, use a child view to apply your rotation on :
Question & answer on SO for better indexation of this issue. |
component generates error on react native any suggestion pls |
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 "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Hello there 👋 By using the code in the repro, we can't actually see the reported bug on RN 0.59 so we'll close this issue. |
Magic Answer
|
Environment
Run
react-native info
in your terminal and paste its contents here.Environment:
OS: macOS Sierra 10.12.6
Node: 6.11.1
Yarn: Not Found
npm: 3.10.10
Watchman: Not Found
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.4 => 0.55.4
Description
Describe your issue in detail. Include screenshots if needed. If this is a regression, let us know.
Applying a rotation transform to a
TouchableOpacity
component will crash when selected on Android.Stack trace:
Reproducible Demo
Let us know how to reproduce the issue. Include a code sample, share a project, or share an app that reproduces the issue using https://snack.expo.io/. Please follow the guidelines for providing a MCVE: https://stackoverflow.com/help/mcve
https://snack.expo.io/HkD7dm-G7
The text was updated successfully, but these errors were encountered: