@deboxsoft/react-native-elements
Version:
React Native Elements & UI Toolkit
115 lines (96 loc) • 3.64 kB
Markdown
---
id: version-0.19.1-getting_started
title: Getting Started
sidebar_label: Getting Started
original_id: getting_started
---
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.
<div class="toggler">
<ul role="tablist" >
<li id="expo" class="button-expo" aria-selected="false" role="tab" tabindex="0" aria-controls="expo" onclick="displayTab('expo')">
Expo | Create React Native App
</li>
<li id="native" class="button-native" aria-selected="false" role="tab" tabindex="-1" aria-controls="nativetab" onclick="displayTab('native')">
React Native CLI
</li>
</ul>
</div>
<block class="expo" />
[ ](https://expo.io) or
[ ](https://github.com/react-community/create-react-native-app)
projects include **react-native-vector-icons** out of the box, so all you need
to do is install **react-native-elements**.
```
yarn add react-native-elements
npm install --save react-native-elements
```
> **Note:** If you see the `UNMET PEER DEPENDENCY` warning for
> **react-native-vector-icons** like below, you can ignore it as
> _react-native-vector-icons_ is already installed by _expo_ or _crna_.
>
> 
<block class="native" />
If your project is a standard React Native project created using
`react-native init` (it should have an ios/android directory), then follow these
installation instructions:
```
yarn add react-native-elements
npm 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:
```
yarn add react-native-vector-icons
npm i --save react-native-vector-icons
react-native link react-native-vector-icons
```
_If you have any issues installing react-native-vector-icons, check out their
installation guide
[ ](https://github.com/oblador/react-native-vector-icons#installation) or
debug it using
[ ](https://github.com/react-native-training/react-native-elements/issues/503)._
<script>
function displayTab(value) {
var container = document.getElementsByTagName('block')[0].parentNode;
container.className = 'display-' + value;
}
function convertBlocks() {
// Convert <div>...<span><block /></span>...</div>
// Into <div>...<block />...</div>
var blocks = document.querySelectorAll('block');
for (var i = 0; i < blocks.length; ++i) {
var block = blocks[i];
var span = blocks[i].parentNode;
var container = span.parentNode;
container.insertBefore(block, span);
container.removeChild(span);
}
// Convert <div>...<block />content<block />...</div>
// Into <div>...<block>content</block><block />...</div>
blocks = document.querySelectorAll('block');
for (var i = 0; i < blocks.length; ++i) {
var block = blocks[i];
while (
block.nextSibling &&
block.nextSibling.tagName !== 'BLOCK'
) {
block.appendChild(block.nextSibling);
}
}
}
convertBlocks();
displayTab('expo')
</script>