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
'Error > React Native' 카테고리의 다른 글
Could not read script 'my-code-path\node_modules\@react-native-community\cli-platform-android\native_modules.gradle' as it does not exist. (0) | 2022.11.27 |
---|---|
Build Failed (0) | 2022.11.27 |
error: index.js : cannot find module ‘@babel/plugin-proposal-decorators’ (0) | 2022.11.27 |
No bundle URL present (0) | 2022.11.27 |
Your Ruby version is x, but your Gemfile specified y (0) | 2022.11.27 |