React/RCTBridgeModule.h 文件未找到 RNSSplashScreen

React/RCTBridgeModule.h file not found RNSSplashScreen

配置 React Native 启动画面时出现以下错误 'React/RCTBridgeModule.h' 找不到文件。我已经在网上查看了解决方案,但我没有设法找到明确的解决方案。

我已经在网上尝试了一些解决方案,并且已经完成了启动画面文档中的步骤,但无济于事。错误出现在 RNSplashScreen.h

我正在使用 React native 6.0+

$ npm i react-native-splash-screen --save
$ cd ./ios
$ pod update
You don't need to do react-native link on XCode 11 beta + RN >= 0.60
And 'Do Not' add the libSplashScreen.a library to Link Binary With Libraries since this will cause the 'Duplicate Symbol Error'.
And go to AppDelegate.m and import the header as follows
#import <react-native-splash-screen/RNSplashScreen.h>
instead of
#import "RNSplashScreen.h"

从以下获得Link

https://github.com/crazycodeboy/react-native-splash-screen/issues/215