mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-06-14 09:59:26 +08:00
Since Google doesn't document the shadow values anywhere (it was documented earlier, but only upto 5dp), this is an approximation.
34 lines
810 B
JavaScript
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);
|