The aim of React Native Elements is to provide an all-in-one UI kit for creating apps in react native. There are many great ui components made by developers all around open source. React Native Elements takes the hassle of assembling these packages together by giving you a ready made kit with consistent api and look and feel.
Installing React Native Elements depends on your type of react native project.
yarn add react-native-elements# or with npmnpm install react-native-elements
Note: If you see the
UNMET PEER DEPENDENCYwarning for react-native-vector-icons like below, you can ignore it as react-native-vector-icons is already installed by expo or crna.
If your project is a standard React Native project created using
react-native init (it should have an ios/android directory), then follow these
yarn add react-native-elements# or with npmnpm i react-native-elements --save
If you have already installed react-native-vector-icons as a dependency for your project you can skip this step. Otherwise run the following command:
Manual linking of react-native-vector-icons is not necessary if you're using email@example.com or above since it is done automatically. This will throw an error though it won't prevent the application from running. To fix this you'll simply have to run
react-native unlink react-native-vector-iconsand the process will run as expected.
# yarnyarn add react-native-vector-icons# or with npmnpm i --save react-native-vector-icons # linkreact-native link react-native-vector-icons