📌  相关文章
📜  调用 'RCTBridgeModuleNameForClass' 没有匹配的函数 - 无论代码示例

📅  最后修改于: 2022-03-11 14:59:28.845000             🧑  作者: Mango

代码示例1
1. yarn add -D patch-package
2. Go to node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm and replace _initializeModules:(NSArray> *)modules to _initializeModules:(NSArray *)modules
3. Go to node_modules/react-native/ReactCommon/turbomodule/core/platform/ios/RCTTurboModuleManager.mm and replace RCTBridgeModuleNameForClass(module)) to RCTBridgeModuleNameForClass(Class(module)))
4. yarn patch-package react-native