Files
react-native-paper/example/main.js
Satyajit Sahoo f28c3359b9 feat: add a paper component. fixes #42 (#47)
Since Google doesn't document the shadow values anywhere (it was documented earlier, but only upto 5dp), this is an approximation.
2016-11-02 06:57:16 +05:30

34 lines
810 B
JavaScript

/* @flow */
import Exponent from 'exponent';
import React, { Component } from 'react';
import {
NavigationProvider,
StackNavigation,
} from '@exponent/ex-navigation';
import { Colors, ThemeProvider } from 'react-native-paper';
import Router from './src/Router';
class App extends Component {
render() {
return (
<ThemeProvider>
<NavigationProvider router={Router}>
<StackNavigation
defaultRouteConfig={{
navigationBar: {
title: 'Examples',
tintColor: Colors.white,
backgroundColor: Colors.indigo500,
},
}}
initialRoute={Router.getRoute('home')}
/>
</NavigationProvider>
</ThemeProvider>
);
}
}
Exponent.registerRootComponent(App);