render
render() {
return (
<ImageBackground
style={styles.bgimg}
source={require('./res/img/wcs.png')}>
<View style={styles.fgcontainer}>
<Text style={styles.qa}>
WCS WCS WCS
</Text>
</View>
</ImageBackground>
);
}
Style
const styles = StyleSheet.create({
bgimg: {
flex: 1
},
fgcontainer: {
flex: 1,
justifyContent: 'center',
alignItems: 'center'
},
qa: {
fontSize: 30,
fontWeight: 'bold'
}
});
No comments:
Post a Comment