Add border for transparent header in example

This commit is contained in:
Brent Vatne
2018-07-17 15:43:22 -07:00
parent 35307c70be
commit bc04b31d01

View File

@@ -16,6 +16,7 @@ import {
Platform,
ScrollView,
StatusBar,
StyleSheet,
View,
} from 'react-native';
import { Header, createStackNavigator } from 'react-navigation';
@@ -231,6 +232,10 @@ const StackWithTranslucentHeader = createStackNavigator(
headerTransitionPreset: 'uikit',
navigationOptions: {
headerTransparent: true,
headerStyle: {
borderBottomWidth: StyleSheet.hairlineWidth,
borderBottomColor: '#A7A7AA',
},
headerBackground: Platform.select({
ios: <BlurView style={{ flex: 1 }} intensity={98} />,
android: (