Created
March 30, 2019 06:17
-
-
Save skd1993/b6e7a28934bbaa0806dd6e3bc325d069 to your computer and use it in GitHub Desktop.
React Native custom top header (without any standard heade component) and icon button
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
<View style={{ width: "80%" }}> | |
<Text style={styles.topTextStyle}>{test_quote}</Text> | |
</View> | |
<View | |
style={{ | |
width: "20%", | |
flex: 1, | |
alignItems: "center", | |
marginTop: "10%", | |
}} | |
> | |
<TouchableOpacity | |
onPress={() => | |
// console.log(this.props.navigation.navigate()) | |
this.props.navigation.navigate("AboutPage", { | |
transition: "slideFromRight" | |
}) | |
} | |
> | |
<Icon | |
size={25} | |
name="md-information-circle-outline" | |
color="#fff" | |
style={{ padding: 5 }} | |
/> | |
</TouchableOpacity> | |
</View> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment