Check out example codes for "react native elements install". It will help you in understanding the concepts better.

Code Example 1

Elements
npm install react-native-elements
npm i react-native-elements --save

Icons
npm i --save react-native-vector-icons
react-native link react-native-vector-icons

Learn ReactJs, React Native from akashmittal.com