1import { Dimensions, Platform, PixelRatio } from 'react-native';
2
3const {
4 width: SCREEN_WIDTH,
5 height: SCREEN_HEIGHT,
6 } = Dimensions.get('window');
7
8 // based on iphone 5s's scale
9 const scale = SCREEN_WIDTH / 320 ;
10
11 export function actuatedNormalize(size) {
12 const newSize = size * scale
13 if (Platform.OS === 'ios') {
14 return Math.round(PixelRatio.roundToNearestPixel(newSize))
15 } else {
16 return Math.round(PixelRatio.roundToNearestPixel(newSize)) - 2
17 }
18 }
1<View>
2 <Text
3 numberOfLines={1}
4 adjustsFontSizeToFit
5 style={{textAlign:'center',fontSize:30}}
6 >
7 {this.props.email}
8 </Text>
9</View>