...
|
...
|
@@ -64,12 +64,14 @@ export default class UserCenterTop extends React.Component { |
|
|
</TouchableOpacity>
|
|
|
<Text
|
|
|
style={styles.name}
|
|
|
numberOfLines={1}
|
|
|
>
|
|
|
{nickName}
|
|
|
</Text>
|
|
|
|
|
|
<Text
|
|
|
style={styles.sign}
|
|
|
numberOfLines={2}
|
|
|
>
|
|
|
{sign}
|
|
|
</Text>
|
...
|
...
|
@@ -83,6 +85,8 @@ export default class UserCenterTop extends React.Component { |
|
|
let {width, height} = Dimensions.get('window');
|
|
|
let navbarHeight = (Platform.OS === 'android') ? 50 : 64;
|
|
|
let containerHieght = Math.ceil((490 / 750) * width);
|
|
|
containerHieght = containerHieght < 245 ? 245 : containerHieght;
|
|
|
|
|
|
let styles = StyleSheet.create({
|
|
|
container: {
|
|
|
height: containerHieght,
|
...
|
...
|
@@ -111,8 +115,8 @@ let styles = StyleSheet.create({ |
|
|
name: {
|
|
|
color: 'white',
|
|
|
textAlign: 'center',
|
|
|
margin: 15,
|
|
|
marginBottom:10,
|
|
|
marginTop: 20,
|
|
|
marginBottom: 4,
|
|
|
fontSize: 14,
|
|
|
fontFamily: 'Helvetica Light',
|
|
|
},
|
...
|
...
|
@@ -121,6 +125,7 @@ let styles = StyleSheet.create({ |
|
|
color: 'white',
|
|
|
textAlign: 'center',
|
|
|
fontSize: 12,
|
|
|
lineHeight: 18,
|
|
|
fontFamily: 'Helvetica Light',
|
|
|
},
|
|
|
|
...
|
...
|
|