mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-03 09:17:55 +08:00
Custom fonts support added
Reviewed By: andreicoman11 Differential Revision: D2629077 fb-gh-sync-id: 8d647aff13f97d90c5047ad0ddbcae90215ca4ca
This commit is contained in:
committed by
facebook-github-bot-4
parent
1ae7a77934
commit
bfeaa6a4f5
@@ -160,6 +160,22 @@ var TextExample = React.createClass({
|
||||
</View>
|
||||
</View>
|
||||
</UIExplorerBlock>
|
||||
<UIExplorerBlock title="Custom Fonts">
|
||||
<View style={{flexDirection: 'row', alignItems: 'flex-start'}}>
|
||||
<View style={{flex: 1}}>
|
||||
<Text style={{fontFamily: 'notoserif'}}>
|
||||
NotoSerif Regular
|
||||
</Text>
|
||||
<Text style={{fontFamily: 'notoserif', fontStyle: 'italic', fontWeight: 'bold'}}>
|
||||
NotoSerif Bold Italic
|
||||
</Text>
|
||||
<Text style={{fontFamily: 'notoserif', fontStyle: 'italic'}}>
|
||||
NotoSerif Italic (Missing Font file)
|
||||
</Text>
|
||||
</View>
|
||||
</View>
|
||||
</UIExplorerBlock>
|
||||
|
||||
<UIExplorerBlock title="Font Size">
|
||||
<Text style={{fontSize: 23}}>
|
||||
Size 23
|
||||
|
||||
Reference in New Issue
Block a user