Here you will learn how to use the React Native Elements component library when building your next React Native app.

What Is React Native Elements?

React Native Elements (RNE) is an open-source effort by React Native developers to create a component library that can be useful when building Android, iOS, and web apps. Unlike many other React Native component libraries, RNE supports TypeScript syntax.

The library consists of over 30 components that focus on component structure.

Installing Reactive Native Elements With the React Native CLI

The following instructions are to install React Native Elements in a project created using the React Native cli.

Install React Native Elements in your bare React Native app by running:

You should also install react-native-vector-icons and safe-area-context:

How to Install React Native Elements in an Expo Project

To install React Native Elements in an existing Expo project, install the package and react-native-safe-area-context:

Maintain one package manager like npm or yarn while installing packages to evade the risk of dependency clashes.

Projects built using the expo cli have react-native-vector-icons installed by default, so you don’t need to install it.

Styling Single React Native Elements Components

All components available through RNE take various props for styling the component and the container of the component.

The component’s container is a basic tag wrapping around a component tag, like the