Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react native font based on viewport dimensions

<View>
  <Text
    numberOfLines={1}
    adjustsFontSizeToFit
    style={{textAlign:'center',fontSize:30}}
  >
    {this.props.email}
  </Text>
</View>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #native #font #based #viewport #dimensions
ADD COMMENT
Topic
Name
4+8 =