static navigationOptions = ({ navigation, navigationOptions, screenProps }) => { return { headerTitle: '标题', //居中标题 headerTitleStyle: {alignSelf: 'center', textAlign: 'center', flex: 1}, headerRight: React.createElement(View, null, null),
headerStyle: navStyles.headerStyle,
headerTruncatedBackTitle: '',
headerBackTitle: ' ',
headerBackImage: (
<Image source={images.commonBack} style={{marginLeft: 16}} />
),
}
}
布局定位 {position: 'absolute', right: 25} 设置投影 { backgroundColor: '#fff', shadowColor: '#474646', shadowOffset: {width: 0, height: 3}, shadowRadius: 0, shadowOpacity: 1, elevation: 6 } 设置渐变 <LinearGradient colors={['#2E7AFC', '#31CBF9']} style={{width: 4, height: 21, marginLeft: 16, marginTop: 17}}>
排序方式-横向 flexDirection: 'row'