-
Notifications
You must be signed in to change notification settings - Fork 132
/
AndroidFonts.js
29 lines (26 loc) · 1.12 KB
/
AndroidFonts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React, { Component } from 'react';
import { AppRegistry, ScrollView, Text, StyleSheet} from 'react-native';
styles=StyleSheet.create({
scroller: {
flex: 1,
}
});
export default class AndroidFonts extends Component{
render (){
return(
<ScrollView style={styles.scroller}>
<Text style={{fontFamily: 'normal'}}> normal </Text>
<Text style={{fontFamily: 'notoserif'}}> notoserif </Text>
<Text style={{fontFamily: 'sans-serif'}}> sans-serif </Text>
<Text style={{fontFamily: 'sans-serif-light'}}> sans-serif-light </Text>
<Text style={{fontFamily: 'sans-serif-thin'}}> sans-serif-thin </Text>
<Text style={{fontFamily: 'sans-serif-condensed'}}> sans-serif-condensed </Text>
<Text style={{fontFamily: 'sans-serif-medium'}}> sans-serif-medium </Text>
<Text style={{fontFamily: 'serif'}}> serif </Text>
<Text style={{fontFamily: 'Roboto'}}> Roboto </Text>
<Text style={{fontFamily: 'monospace'}}> monospace </Text>
</ScrollView>
);
}
}
AppRegistry.registerComponent('AndroidFonts', () => AndroidFonts);