question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Navigator Stack doesn't work because of "RNReanimated" dependency

See original GitHub issue

Description

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

  1. Make a new build using react-native init TestApp --template=react-native-tvos@latest
  2. yarn add @react-navigation/native
  3. pod install (success)
  4. yarn add react-native-reanimated react-native-gesture-handler react-native-screens react-native-safe-area-context @react-native-community/masked-view
  5. 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:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
douglowdercommented, Jul 20, 2021

react-native-screens has 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.

0reactions
douglowdercommented, Jul 20, 2021

The demo project https://github.com/react-native-tvos/TVReanimated now works correctly with the 2.2.0 version of react-native-reanimated and the latest react-navigation, on iOS, tvOS, and Android phone and TV. The project uses patch-package to apply the small podspec and source code changes needed for Apple TV on a few packages.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found