Answers for "No matching function for call to 'RCTBridgeModuleNameForClass' ReactCommon"

2

No matching function for call to 'RCTBridgeModuleNameForClass'

1. yarn add -D patch-package
2. Go to node_modules/react-native/React/CxxBridge/RCTCxxBridge.mm and replace _initializeModules:(NSArray<id<RCTBridgeModule>> *)modules to _initializeModules:(NSArray<Class> *)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
Posted by: Guest on May-07-2021

Code answers related to "No matching function for call to 'RCTBridgeModuleNameForClass' ReactCommon"

Browse Popular Code Answers by Language