ReactNativeLocalization icon indicating copy to clipboard operation
ReactNativeLocalization copied to clipboard

Doesn't work with CocoaPods

Open Aleksandern opened this issue 6 years ago • 1 comments

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.....'

mspaint_2018-08-11_16-37-02 conemu64_2018-08-11_16-37-39

RN: 0.56.0 Xcode: 9.4.1 "react-native-localization": "^2.0.0",

Aleksandern avatar Aug 11 '18 09:08 Aleksandern

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'

ElvisChiang avatar Nov 22 '18 05:11 ElvisChiang