ReactNativeLocalization
ReactNativeLocalization copied to clipboard
Doesn't work with CocoaPods
Hi Stefano, It works okay on iOS without Pod but if I use Pod then I see error. 'Something went wrong initializing the native ReactNativeLocalization module.....'
RN: 0.56.0 Xcode: 9.4.1 "react-native-localization": "^2.0.0",
try to add React as dependencies remove unused libraries if necessary
rn_path = '../node_modules/react-native'
target 'projectname' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for scooter
pod "yoga", :path => rn_path + '/ReactCommon/yoga'
# Needed by CxxBridge
pod 'DoubleConversion', :podspec => rn_path + '/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => rn_path + '/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => rn_path + '/third-party-podspecs/Folly.podspec'
pod 'React', :subspecs => [
'Core',
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
# Use default
'CxxBridge',
'ART',
'RCTActionSheet',
#'RCTAdSupport',
'RCTAnimation',
#'RCTCameraRoll',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTPushNotification',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'RCTBlob',
#'RCTTest',
], :path => rn_path
pod 'ReactNativeLocalization', :path => '../node_modules/react-native-localization'