ExpoでreactDelegate' not found on object of type 'AppDelegate

Expoで開発をしていたら reactDelegate' not found on object of type 'AppDelegate' というエラーが出た。

ここにあるようにSDK44で対応しているものらしい。

そういえば自分は44でinitしたが、reanimatedがうまく動かなかったので43にダウンさせていた。おそらくこれが不整合を起こしていたと思う。

AppDelegate.mを修正して対応

before

RCTBridge *bridge = [self.reactDelegate createBridgeWithDelegate:self launchOptions:launchOptions];

RCTRootView *rootView = [self.reactDelegate createRootViewWithBridge:bridge moduleName:@"main" initialProperties:nil];

UIViewController *rootViewController = [self.reactDelegate createRootViewController];

after

RCTBridge *bridge = [[RCTBridge alloc] initWithDelegate:self launchOptions:launchOptions];

RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge
                                                   moduleName:@"main"
                                            initialProperties:nil];

UIViewController *rootViewController = [UIViewController new];

キャッシュクリアしてビルドしたら解決。