Answers for "no matching function for call to 'rctbridgemodule name for class'"

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 'rctbridgemodule name for class'"

Browse Popular Code Answers by Language