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.

iOS Warning: RCTBridge required dispatch_sync to load REAModule

See original GitHub issue

Description

When the application starts, I get the following warning: RCTBridge required dispatch_sync to load REAModule. This may lead to deadlocks

Steps to reproduce

Every time the application is launched

Знімок екрана 2022-10-15 о 11 33 43

Snack or a link to a repository

Sorry

Reanimated version

2.11.0

React Native version

0.70.3

Platforms

iOS

JavaScript runtime

No response

Workflow

React Native (without Expo)

Architecture

No response

Build type

No response

Device

No response

Device model

No response

Acknowledgements

Yes

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:16
  • Comments:16 (3 by maintainers)

github_iconTop GitHub Comments

23reactions
tomekzawcommented, Oct 21, 2022

The offending PR is #3555. Fixed in #3698.

If you encounter warning “RCTBridge required dispatch_sync to load REAModule”, you have four options:

  1. Simply ignore the warning (it only appears in debug mode, so you won’t see this in production build of your app).

  2. Add the following code in index.js of your app:

import { LogBox } from 'react-native';

LogBox.ignoreLogs(['RCTBridge required dispatch_sync to load REAModule']);
  1. Remove the following lines in node_modules/react-native-reanimated/ios/REAModule.mm (e.g. using patch-package):
- + (BOOL)requiresMainQueueSetup
- {
-   return YES;
- }
  1. Downgrade to react-native-reanimated@2.10.0 and upgrade to 2.12.0 once this issue is fixed.
15reactions
aymathercommented, Oct 16, 2022

I can also confirm that moving from 2.10.0 -> 2.11.0 introduced this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve RCTBridge required dispatch_sync to load ...
How to solve RCTBridge required dispatch_sync to load warning on iOS for React Native ; 1#import "AppDelegate.h" ; 2 ; 3// Add this...
Read more >
react native - RCTBridge required dispatch_sync to load ...
I fixed it with updating AppDelegate.m as below: #if RCT_DEV #import <React/RCTDevLoadingView.h> #endif //.
Read more >
RCTBridge required dispatch_sync to load ... - Expo Forums
Im upgrade expo 43 or 44 use monorepo. Warn : RCTBridge required dispatch_sync to load RNGestureHandlerModule. This may lead to deadlocks.
Read more >
RCTBridge required dispatch_sync to load ... - Medium
Many react-native developer Reported this bug. I am here to fix all of them. “react-native-vector-icons” is able to cause this Bug. If you ......
Read more >
[RN] RCTBridge required dispatch_sync to load ... - velog
[RN] RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks. Warning ... React-Native로 작성된 프로젝트를 iOS ...
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