Last active
May 21, 2018 13:24
-
-
Save VivekNayyar/2321a0c8937f0168a0b8b5f702092997 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { Header } from "react-navigation"; | |
import { View, Platform } from "react-native"; | |
import LinearGradient from "react-native-linear-gradient"; | |
const CustomHeader = props => { | |
return ( | |
<View | |
style={{ | |
height: 56, | |
marginTop: Platform.OS == "ios" ? 20 : 0 | |
}} | |
> | |
<LinearGradient | |
colors={["#6200EE", "#3700B3"]} | |
> | |
<Header {...props} /> | |
</LinearGradient> | |
</View> | |
); | |
}; | |
export default CustomHeader; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment