ReactNativeLocalization: Something went wrong initialing the ReactLocalization module.

Hi, I created a React-Native project yesterday, and I just installed your library.

I ran the installation commands as specified:

npm install react-native-localization --save
react-native link

My application in the simulator now displays this error: capture d ecran 2017-02-03 12 00 27

I killed the simulator, killed the terminal launched by react-native run-ios and reran `react-native run-ios`` but I still got the error.

Any help would be appreciated, thanks 😃

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (6 by maintainers)

Most upvoted comments

You cannot use external library in expo.io project…

Because you don’t build any native code when using Create React Native App to create a project, it’s not possible to include custom native modules beyond the React Native APIs and components that are available in the Expo client app.

This is how I made it work with a create-react-native-app project:

  • eject your project with npm run eject
  • remove node_modules as suggested (rm -r node_modules)
  • install again modules with npm i
  • relink ReactNativeLocalization module with react-native link
  • CLOSE the packager (and the emulator)
  • run the project: react-native run-ios

hmm

  • restart machine
  • rm node_modules
  • re-linkung
  • restart machine

will not get me to localization heaven… 06 02 2017 22 51 07xcode This is iOS only error, but as i mentioned . the libReactNativeLocalization.a is not found on computer, therefore it can’t lead to success.

you probably have that on your device, therefore linking is successful?