Closed bfmehdi closed 2 years ago
Confirm the issue. "expo": "^44.0.6", with expo unimodules "react-native": "^0.67.3", "react-native-localization": "^2.3.1",
Are you using Expo?
Have you checked this web page?
I use ejected EXPO. Does it have an impact on this issue?
I guess so... Have you tried to create an empty React Native project, add the library and compile?
Thanks
On Sun, Mar 13, 2022 at 2:53 PM Maxim Rusakovič @.***> wrote:
Are you using Expo?
Have you checked this web page?
https://docs.expo.dev/workflow/using-libraries/
I use ejected EXPO. Does it have an impact on this issue?
— Reply to this email directly, view it on GitHub https://github.com/stefalda/ReactNativeLocalization/issues/214#issuecomment-1066107154, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGA53WFF7CDNRXXMK7SHRLU7XXN3ANCNFSM5PBXSEUA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.***>
Try this patch:
File: react-native-localization+2.3.1.patch
when using patch-package
# https://github.com/expo/expo/issues/15622#issuecomment-997141629 type of change
diff --git a/node_modules/react-native-localization/ios/ReactLocalization.h b/node_modules/react-native-localization/ios/ReactLocalization.h
index 909f842..1f9302d 100644
--- a/node_modules/react-native-localization/ios/ReactLocalization.h
+++ b/node_modules/react-native-localization/ios/ReactLocalization.h
@@ -23,13 +23,8 @@
#import <Foundation/Foundation.h>
#import <UIKit/UIDevice.h>
-#if __has_include("RCTBridgeModule.h")
-#import "RCTBridgeModule.h"
-#import "RCTLog.h"
-#else
#import <React/RCTBridgeModule.h>
#import <React/RCTLog.h>
-#endif
@interface ReactLocalization : NSObject<RCTBridgeModule>
@end
I created a new react native project using Ignite and running it on M1 MacBook. I have Xcode 13.2.1 installed. This is the output of my react-native info
After adding the library using
yarn add react-native-localization
and installing the pods, the project fails during the building on iOS.I get this errors on Xcode
By removing the library the app works again.