2

Currently getting an error when ever clicking on a react TouchableOpacity control.

enter image description here

1
  • Nice screenshot. But, what is the question? Commented Dec 14, 2018 at 5:56

2 Answers 2

4

I was able to fix by removing the transform from StyleSheet.

 transform: [
      {
        rotate: '45deg'
      }
    ]
Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for saving my day. I was stuck with this error from a week.
0

Using <TouchableHighlight> instead of <TouchableOpacity> will prevent the crash and you can still use the transform.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.