File tree Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Expand file tree Collapse file tree 1 file changed +19
-3
lines changed Original file line number Diff line number Diff line change 11// @flow
22
3+ import { Platform , StyleSheet } from 'react-native'
34import { StackNavigator } from 'react-navigation'
45import * as c from './views/components/colors'
56
@@ -31,6 +32,22 @@ import {FaqView} from './views/faqs'
3132// import {SnapshotsView} from './storybook'
3233import HelpView from './views/help'
3334
35+ const styles = StyleSheet . create ( {
36+ header : {
37+ backgroundColor : c . olevilleGold ,
38+ } ,
39+ card : {
40+ ...Platform . select ( {
41+ ios : {
42+ backgroundColor : c . iosLightBackground ,
43+ } ,
44+ android : {
45+ backgroundColor : c . androidLightBackground ,
46+ } ,
47+ } ) ,
48+ } ,
49+ } )
50+
3451export const AppNavigator = StackNavigator (
3552 {
3653 HomeView : { screen : HomeView } ,
@@ -66,10 +83,9 @@ export const AppNavigator = StackNavigator(
6683 } ,
6784 {
6885 navigationOptions : {
69- headerStyle : {
70- backgroundColor : c . olevilleGold ,
71- } ,
86+ headerStyle : styles . header ,
7287 headerTintColor : c . white ,
7388 } ,
89+ cardStyle : styles . card ,
7490 } ,
7591)
You can’t perform that action at this time.
0 commit comments