Error/React Native

RCTBridge required dispatch_sync to load warning on IOS for React Native

conqueror-G 2022. 11. 27. 05:57
Platform Mobile
Skill React Native

 

✏️ Error 사진

 

 

✏️ Error 이름

RCTBridge required dispatch_sync to load warning on IOS for React Native

 

✏️ Error 해결방법

1. 프로젝트 디렉토리에서 해당 경로로 이동

cd ios/자신의앱

2. 해당 파일 오픈

code AppDelegate.mm

3. 해당 코드를 특정 위치에 기입

#import "AppDelegate.h"   <-- 찾기

// Add this
#if RCT_DEV
#import <React/RCTDevLoadingView.h>
#endif
// ---------------

4. 해당 코드를 또 특정 위치에 기입

// Add this
#if RCT_DEV
    [bridge moduleForClass:[RCTDevLoadingView class]];
  #endif
// ----------------

@implementation AppDelegate