Skip to content

Commit

Permalink
docs: update instructions for running the example app
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Feb 19, 2019
1 parent c108aaf commit 7a4966d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Getting Started
---

# Getting Started

## Installation

Open a Terminal in your project's folder and run,
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/3.theming.md → docs/pages/2.theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Theming
---

# Theming

## Applying a theme to the whole app

To support custom themes, paper exports a `Provider` component. You need to wrap your root component with the provider to be able to support themes.
Expand Down
2 changes: 2 additions & 0 deletions docs/pages/4.icons.mdx → docs/pages/3.icons.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const meta = {

import IconsList from './src/components/IconsList.js'

# Icons

## Configuring icons

Many of the components require the [react-native-vector-icons](https://github.com/oblador/react-native-vector-icons) library to render correctly. If you're using Expo, you don't need to do anything extra, but if it's vanilla React Native project, you need link the library as described in the getting started guide.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: Using on the Web
---

# Using on the Web

## Pre-requisites

Make sure that you have followed the getting started guide and have `react-native-paper` installed and configured before following this guide.
Expand Down
File renamed without changes.
10 changes: 4 additions & 6 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ You can run the React Native app with [this Snack](https://snack.expo.io/@satya1

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
- Clone the repository and run `yarn bootstrap` in the root
- Run `yarn example 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
- Clone the repository and run `yarn bootstrap` in the root
- Run `yarn example web` to start the webpack server and open the app in your browser

0 comments on commit 7a4966d

Please sign in to comment.