Skip to content
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

Xcode build error for AppleTV on 2.1.0 #1813

Closed
robbert040 opened this issue Jan 10, 2022 · 1 comment · Fixed by #1857
Closed

Xcode build error for AppleTV on 2.1.0 #1813

robbert040 opened this issue Jan 10, 2022 · 1 comment · Fixed by #1857
Labels
Platform: iOS This issue is specific to iOS

Comments

@robbert040
Copy link

robbert040 commented Jan 10, 2022

Description

When trying to create a build for AppleTV with version 2.1.0 you wil run into the following issue

'UIRotationGestureRecognizer' is unavailable: not available on tvOS

Screenshots

Screenshot 2022-01-10 at 11 14 13

Steps To Reproduce

  1. create a fresh react-native-tv-os project
  2. Update the gesture handler to version 2.1.0
  3. Build for AppleTV

Expected behavior

The build will succeed it was working on version "react-native-gesture-handler": "^1.10.3"

Actual behaviour

The build fails with an error

Package versions

  • React: "react": "17.0.1"
  • React Native: npm:react-native-tvos@0.64.2-4
  • React Native Gesture Handler: "react-native-gesture-handler": "^2.1.0"
@j-piasecki j-piasecki added the Platform: iOS This issue is specific to iOS label Jan 10, 2022
@todorone
Copy link
Contributor

Confirming it, RNGH 1.x works fine on tvOS and 2.x does not.

j-piasecki added a commit that referenced this issue Feb 2, 2022
Fix tvOS compilation errors by excluding unsupported parts of the code when building for it.

Should fix #1813.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: iOS This issue is specific to iOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants