Files
react-native-paper/example/README.md
Satyajit Sahoo 22ffb9ae73 chore: add react-native-web example. closes #671
This example is missing the drawer, but all other examples are there. There are rendering issues with few components on the web. Hopefully this example will make it easier to identify these issues and fix them in future.
2019-01-27 14:38:27 +01:00

21 lines
1.0 KiB
Markdown

# Example App for React Native Paper
## React Native App
You can run the React Native app with [this Snack](https://snack.expo.io/@satya164/github.com-callstack-react-native-paper:example). Snack allows you to make changes to the example app directly in the online editor and see changes on your phone instantly using the [Expo](https://expo.io/) app without having to install or setup anything on your computer. You can also "Export" it to download as a standalone Expo app to run locally.
If you want to run the example from the repo,
- Clone the repository and `cd` to this directory
- Run `yarn` to install the dependencies
- Run `yarn start` to start the packager
- Follow the instructions to open it with the [Expo app](https://expo.io/)
## Web App
You can also run the example app as a web app using [react-native-web](https://github.com/necolas/react-native-web),
- Clone the repository and `cd` to this directory
- Run `yarn` to install the dependencies
- Run `yarn web` to start the webpack server and open the app in your browser