ReactNativeLocalization icon indicating copy to clipboard operation
ReactNativeLocalization copied to clipboard

console.error: "something went wrong initializing the native reactnativelocalization module. please check your configuration. did you run 'react-native link'?"

Open NeerajSingh123 opened this issue 6 years ago • 15 comments
trafficstars

Screen Shot 2019-06-25 at 8 27 54 PM

NeerajSingh123 avatar Jun 25 '19 14:06 NeerajSingh123

did you find the solution?

dnyaneshk8 avatar Jul 19 '19 10:07 dnyaneshk8

Same problem, we need a solution to this.

miltonbo avatar Jul 19 '19 16:07 miltonbo

Hi, I've tested the library with latest version of RN and everything works.

Be sure to use this code from the terminal:

#react-native >= 0.60
cd ios && pod install && cd ..

stefalda avatar Jul 20 '19 08:07 stefalda

I found the problem, there is a linking problem opening the project, you must link the binary file called libReactNativeLocalization.a in the Build Phrases -> Link Binary With Libraries of your project manually and you must run the react-native link command too.

That solve my problem with ReactNativeLocalization, same problem I had with another library so I did something similar and now it is working ok.

miltonbo avatar Jul 20 '19 12:07 miltonbo

same issue.... i am facing.... searching solution..?

ImAbhishekTomar avatar Jul 28 '19 13:07 ImAbhishekTomar

I am getting this issue on Android, can't seem to fix it at all.

stuartaylward avatar Aug 22 '19 14:08 stuartaylward

Same issue

rendomnet avatar Aug 29 '19 08:08 rendomnet

I found the problem, there is a linking problem opening the project, you must link the binary file called libReactNativeLocalization.a in the Build Phrases -> Link Binary With Libraries of your project manually and you must run the react-native link command too.

That solve my problem with ReactNativeLocalization, same problem I had with another library so I did something similar and now it is working ok.

But in RN 0.60 this linking should be using Cocoa pods and not manual linking. @stefalda

rendomnet avatar Aug 29 '19 08:08 rendomnet

I found the problem, there is a linking problem opening the project, you must link the binary file called libReactNativeLocalization.a in the Build Phrases -> Link Binary With Libraries of your project manually and you must run the react-native link command too.

That solve my problem with ReactNativeLocalization, same problem I had with another library so I did something similar and now it is working ok.

I also can not run with a method like this

royhanrahim avatar Aug 29 '19 16:08 royhanrahim

I am facing the same issue in Android

anmour avatar Dec 17 '19 20:12 anmour

I'm facing the same issue in Android as well.

WrathChaos avatar Dec 18 '19 09:12 WrathChaos

When I change to another project if I forgot or didn't close Metro Bundler this error always appear to me.

Another solution is add this line in your podfile pod 'ReactNativeLocalization', :path => '../node_modules/react-native-localization'

and run cd ios/ && pod install

guistrutzki avatar Mar 13 '20 19:03 guistrutzki

same issue

minh-dai avatar Jul 14 '21 15:07 minh-dai

@NeerajSingh123 have you found a solution?

Ghayour-vialogic avatar Jan 24 '23 14:01 Ghayour-vialogic

same issue, on android 13

edritech93 avatar Sep 25 '23 01:09 edritech93