/react-native-elements-app

Demo app for React Native Elements (w/ React Native Web)

Primary LanguageJavaScript

React Native Elements App

React Native Elements App

This is the Demo app for React Native Elements built with Expo. In this app you will find examples on on how to use various RNE components as well as production-ready screens.

This app also work on the web platform using React Native Web. You can checkout the live website here. If you are looking to build a React Native mobile app & also reuse the code to deploy on web, this repo can be used as a great starting point.

Also the RNE team runs and maintains this project, so if you need any help developing your app with React Native Elements, someone on our team can help you out as well. Feel free to reach out to @monte9.

Demo

Mobile App | Web App

Run it locally

  1. Install Expo CLI
[sudo] npm install -g expo-cli

If permissions errors then please use --unsafe-perm=true flag too npm/npm#16766

  1. Clone the project
git clone https://github.com/react-native-training/react-native-elements-app.git
  1. Install dependencies
cd react-native-elements-app

# Using npm or yarn
yarn || npm install
  1. Run the cross-platform app (uses Expo)
yarn start || npm start

Deploy Web app

First you must set correct publicPath in app.web-build.json. Next you must build the web app using:

yarn build:web

Once you have built it, you can see generated web-build folder.

This folder can be hosted as static website. For example you can publish on Github Pages via gh-pages cli.

yarn deploy

Note: don't forget to add or change "homepage" key in your package.json

Ejecting

The mobile app is built using Expo. If you would like to eject, you can run the following command:

yarn eject || npm run eject

We highly recommend you read the official Expo ejection docs before proceeding.

Major contributors:

React Native Elements

This app is built using React Native Elements. RNE is a UI toolkit for React Native that provides you with production ready UI components so that you can focus on building the part that makes your app unique as opposed to reinvent the UI wheel.

You can install react-native-elements in your app using:

yarn add react-native-elements || npm install react-native-elements --save

Feedback

In case you run into any problems while running this app or have additional questions, please create a new issue on this repo and we will follow up with you.