Navigator Stack doesn't work because of "RNReanimated" dependency
See original GitHub issueDescription
Pod Install fails with error message :
[!] Unable to find a specification for React-RCTActionSheetdepended upon byRNReanimated``
React Native version
System:
OS: macOS 11.4
CPU: (8) arm64 Apple M1
Memory: 107.31 MB / 8.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.11.0 - /opt/homebrew/bin/node
Yarn: 1.22.10 - /opt/homebrew/bin/yarn
npm: 7.8.0 - /opt/homebrew/bin/npm
Watchman: 4.9.0 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.10.1 - /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
Languages:
Java: Not Found
npmPackages:
@react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: Not Found
react-native-macos: Not Found
react-native-tvos: 0.64.2-1
npmGlobalPackages:
*react-native*: Not Found
Steps To Reproduce
- Make a new build using
react-native init TestApp --template=react-native-tvos@latest - yarn add @react-navigation/native
- pod install (success)
- yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
- pod install (fails with “Unable to find a specification for `React-RCTActionSheet” error)
Expected Results
It should successfully pod install. This error does not occur in normal ios react native projects.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
Unable to resolve module `react-native-reanimated`
I started out using createStackNavigator and createBottomTabNavigator and my builds we working fine. As soon as I added createDrawerNavigator my ...
Read more >Requiring module "node_modules\react-native-reanimated ...
Description I am trying to use createDrawerNavigator from import { createDrawerNavigator } from '@react-navigation/drawer'; in react native.
Read more >Troubleshooting | React Navigation
If the module points to an npm package (i.e. the name of the module doesn't with ./ ), then it's probably due to...
Read more >failed to initialize react-native-reanimated library - You.com
A frequent cause of the error is that the application entry file path is incorrect. ... Ps: I don't have expo-updates on my...
Read more >react-navigation-stack - npm
Stack navigator component for React Navigation. Latest version: 2.10.4, last published: 2 years ago. Start using react-navigation-stack in ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

react-native-screenshas never compiled on tvOS without some patches, as far as I know.In order to help people get past this and other issues with Reanimated, I’ve started a demo project, https://github.com/react-native-tvos/TVReanimated . It has the patches needed for Reanimated, screens, and svg packages, so that the tvOS target will compile and run at least some of the Reanimated examples.
The demo project https://github.com/react-native-tvos/TVReanimated now works correctly with the 2.2.0 version of
react-native-reanimatedand the latestreact-navigation, on iOS, tvOS, and Android phone and TV. The project usespatch-packageto apply the small podspec and source code changes needed for Apple TV on a few packages.