2018-03-06 16:21:39 +01:00
2018-03-02 22:18:45 +01:00
2018-03-02 22:18:45 +01:00
2018-02-26 12:40:25 +01:00
2018-03-02 22:18:45 +01:00
2018-03-02 22:18:45 +01:00
2016-10-23 23:36:39 +05:30
2017-11-27 01:29:42 +05:30
2018-03-02 22:18:45 +01:00
2018-02-23 12:27:36 +01:00
2018-03-06 16:21:39 +01:00
2018-03-03 12:13:50 +01:00

React Native Paper · Build Status Version MIT License Chat

Material design for React Native.

Features

Currently supported React Native version: >= 0.50.3

Try it out

Run the example app with Expo to see it in action.

Getting Started

Installation

Open a Terminal in your project's folder and run,

yarn add react-native-paper react-native-vector-icons

After installation, you'll need to link react-native-vector-icons.

Usage

Wrap your root component in Provider from react-native-paper. It's a good idea to wrap the component which is passed to AppRegistry.registerComponent.

Example:

import React from 'react';
import { AppRegistry } from 'react-native';
import { Provider as PaperProvider } from 'react-native-paper';
import App from './src/App';

function Main() {
  return (
    <PaperProvider>
      <App />
    </PaperProvider>
  );
}

AppRegistry.registerComponent('main', () => Main);

The PaperProvider component provides the theme to all the components in the framework. It also acts as a portal to components which need to be rendered at the top level.

Customization

You can provide a custom theme to customize the colors, fonts etc. with the Provider component. Check the default theme to see what customization options are supported.

Example:

import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';

const theme = {
  ...DefaultTheme,
  colors: {
    ...DefaultTheme.colors,
    primary: 'tomato',
    accent: 'yellow',
  },
};

function Main() {
  return (
    <PaperProvider theme={theme}>
      <App />
    </PaperProvider>
  );
}

Components

Check all the components and its usage in our docs page.

Description
No description provided
Readme 62 MiB
Languages
TypeScript 90.7%
JavaScript 8.5%
Shell 0.4%
CSS 0.3%