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.

Problems with loading app with Reanimated 2 [iOS]

See original GitHub issue

Description

Hello, thanks for the great update and your work to give us a stable version of reanimated 2. I checked previous issues and I didn’t find anything similar.

The problem is pretty simple to explain. With react-native-reanimated I need to refresh app 3-6 times (sometimes even more) to make it load. Otherwise, I can see a white screen (screenshot below) without any error inside console/ Xcode. I was able to run the app only once on the physical device and I tried to refresh the app like 50 times.

To make it clear - reanimated is working correctly and I’m able to run example code without any issues/errors. I cannot hot reload the app nor make it work after the first refresh.

Do you have same problems or I’m missing some kind of additional step of the configuration? I would really appreciate your hints.

Screenshots

screen

Steps To Reproduce

  1. Run the app with reanimated 2

Expected behaviour

Hot reload/hard reload will work out of the box

Actual behavior

Most of the time I can see a white screen without errors. I need to hard refresh the app multiple times

Snack or minimal code example

I encountered it even without any reference to react-native-reanimated inside JavaScript. Just after enabling TurboModules

Package versions

  • React: 16.13.1
  • React Native: 0.63.2
  • React Native Reanimated: 2.0.0-alpha.5 / tried also with master branch

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jpudyszcommented, Aug 26, 2020

I found the code responsible for the issue:

 <NavigationContainer
            ref={navigationRef}
-            // linking={{
-            //     prefixes: ['myAppPrefix://'],
-            //     config: {
-            //         screens: {
-            //             [ScreenNames.AuthSwitch]: 'auth/:message'
-            //         }
-            //     }
-            // }}
0reactions
guistrutzkicommented, Dec 9, 2020

I had this same issue and my NavigationContainer didn’t have any props like linking. I fixed it stopping debug.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to build app after reanimated 2 installation in react native
I just ran into issues with reanimated 2 (2.7.0) while trying to build react native for ios with the following errors:
Read more >
Reanimated - Expo Documentation
Reanimated uses React Native APIs that are incompatible with "Remote JS Debugging" for JavaScriptCore. In order to use a debugger with your app...
Read more >
Installation | React Native Reanimated - Software Mansion
After adding the react-native-reanimated/plugin to your project you may encounter a false-positive "Reanimated 2 failed to create a worklet" error. In most ...
Read more >
Troubleshooting | React Navigation
These issues may or may not be related to React Navigation itself. ... You can install the latest versions by installing the packages...
Read more >
react-native-reanimated - npm
React Native's Animated library reimplemented. Reanimated 2 is here! Check out our documentation page for more information. React Native ...
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