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.
yarn add react-native-localization && npx pod-installin your root directory.
yarn start --reset-cache
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.
yarn add react-native-vector-icons
yarn add @types/react-native-vector-icons
react-native link react-native-vector-iconsThis 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.
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…