Answers for "React ative No matching function for call to 'RCTBridgeModuleNameForClass'"

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 "React ative No matching function for call to 'RCTBridgeModuleNameForClass'"

Browse Popular Code Answers by Language