Vincent Nguyen
Vincent Nguyen
> @dylancom can you provide a reproducer? @cipolleschi I have faced same as the issue. We can create an empty project and set flag RCT_NEW_ARCH_ENABLED=1 on pod install script and...
@cipolleschi My scripts: 1. Install Admob: ``` yarn add react-native-google-mobile-ads ``` 2. Install pod as Script In package.json from root Project. "pod-i": " cd ios && NO_FLIPPER=1 USE_FRAMEWORKS=static RCT_NEW_ARCH_ENABLED=0 pod...
I used to fix in my code like this to test and It fixed but not a correct fix @cipolleschi Due to duplicated definition when doing codegen. So It may...
Yes @cipolleschi . I used to code objective-c & C/C++. When we include a header file. We must check If the class defined or not to avoid duplication from #import...
For some reasons - I found a quick fix for the error on React Native Google Mobile Ads by this patch: ``` diff --git a/node_modules/react-native-google-mobile-ads/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm b/node_modules/react-native-google-mobile-ads/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm index 9e48dec..8c25534 100644 ---...
Same as this too! Android - No problem in ReactNative - 0.73.6 with newArchEnabled=false => It happens when set newArchEnabled=true.
I can build successfully with this path: ```diff --git a/node_modules/react-native-google-mobile-ads/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm b/node_modules/react-native-google-mobile-ads/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm index 9e48dec..8c25534 100644 --- a/node_modules/react-native-google-mobile-ads/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm +++ b/node_modules/react-native-google-mobile-ads/ios/RNGoogleMobileAds/RNGoogleMobileAdsModule.mm @@ -21,9 +21,9 @@ #import #import "RNGoogleMobileAdsModule.h" -#ifdef RCT_NEW_ARCH_ENABLED -#import "RNGoogleMobileAdsSpec.h" -#endif...
https://github.com/facebook/react-native/commit/46b6453eb6fe5435a792aa4a0f9183446f4fa41f - A "react-native" commit has been pushed here for fixing this issue!
@dylancom This is also fixed from React Native commit now and please check my above path. Thank you!