Sign in

Senior Software Engineer III @Nike

I was building a React Native app where I had to provide support for 3 different languages i.e English, Hindi, and Marathi. I started reading about the various React Native libraries that provide support for localization. I chose React Native Localization. The documentation appeared to be succinct and supportive. Without further adieu, let me list down the steps to install this library, and then you’ll see, how you can use it in your project.

Installation

  • Run yarn add react-native-localization && npx pod-install in your root directory.
  • Uninstall the previously installed app and run the new build
  • Run yarn start --reset-cache
  • Voila!

Instantiation


Recently, I was facing a lot of issues while I was trying to integrate React Native Vector Icons with the recent version of React Native (≥0.60). My build started breaking due to some outdated commands I was running.

After some hassle, I was able to configure it successfully and I am writing this post to save some time of my fellow developers. Follow the steps to integrate React Native Vector Icons on iOS and Android.

  1. yarn add react-native-vector-icons
  2. If you are using typescript, run yarn add @types/react-native-vector-icons
  3. Please do not run react-native link react-native-vector-icons This is where I went wrong.


Update: There is a better way to add pre-commit hooks to your project. Checkout husky. You can follow the below-given tutorial to learn how to manually add pre-commit hooks.

Before we go ahead, I’d like to provide a little background on ESLint and Git pre-commit hook. If you’re familiar with them, you can skip the next two sections.

ESLint

Developers tend to commit mistakes while coding. For example, you might forget to close a bracket or you might end up creating a variable that already exists. But, mistakes like this might end up breaking your app or site. We might push…

Rahul Shetty

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store