Authored by chenl

兼容android版本 个人中心显示被遮挡的问题。review by 李犇。

... ... @@ -215,11 +215,12 @@ export default class MineListHeader extends React.Component {
let bgMarginTop = Platform.OS === 'ios' ? -95 : 0;
let bgPaddingTop = Platform.OS === 'ios' ? 160: 45;
let paddingContainer =(width - 36*5)/16;
let containerBottomMargin = Platform.OS === 'ios' ? -105 : 0;
let favStringFontSize = profile.uid != '0' ? 11 : 15;
return (
<View style={[styles.container,{height:oHigh, marginBottom: -105}]}>
<View style={[styles.container,{height:oHigh, marginBottom:containerBottomMargin}]}>
<Image source={bgImage}
style={{width: width, height: bgHeight, paddingTop: bgPaddingTop, marginTop: bgMarginTop}}
resizeMode={'cover'}>
... ... @@ -726,9 +727,19 @@ export default class MineListHeader extends React.Component {
height: 10,
backgroundColor: '#f0f0f0',
}}/>
<Text style={[styles.icon_text, {fontSize: 16, height: 120, marginTop:15,}]} numberOfLines={1}>
为您优选
</Text>
{
Platform.OS === 'ios' ?
<Text style={[styles.icon_text, {fontSize: 16, height: 120, marginTop:15,}]} numberOfLines={1}>
为您优选
</Text>
:
<View style={styles.row}>
<Text style={[styles.icon_text, {textAlign: 'center',}]} numberOfLines={1}>
为您优选
</Text>
</View>
}
</View>
);
}
... ...