mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-22 03:27:35 +08:00
Use TextLegend example in Android as well
Summary: @public Just movin' stuff around. This shouldn't render any actual metrics yet on Android, need native changes for that. Reviewed By: achen1 Differential Revision: D9584669 fbshipit-source-id: 4b6169b14d1f2053258191f67e1f361a4b714a8e
This commit is contained in:
committed by
Facebook Github Bot
parent
2c3e4ec06b
commit
335927db44
@@ -15,6 +15,7 @@ var ReactNative = require('react-native');
|
||||
var {Image, StyleSheet, Text, View} = ReactNative;
|
||||
var RNTesterBlock = require('./RNTesterBlock');
|
||||
var RNTesterPage = require('./RNTesterPage');
|
||||
const TextLegend = require('./Shared/TextLegend');
|
||||
|
||||
class Entity extends React.Component<$FlowFixMeProps> {
|
||||
render() {
|
||||
@@ -87,6 +88,9 @@ class TextExample extends React.Component<{}> {
|
||||
This text is indented by 10px padding on all sides.
|
||||
</Text>
|
||||
</RNTesterBlock>
|
||||
<RNTesterBlock title="Text metrics legend">
|
||||
<TextLegend />
|
||||
</RNTesterBlock>
|
||||
<RNTesterBlock title="Font Family">
|
||||
<Text style={{fontFamily: 'sans-serif'}}>Sans-Serif</Text>
|
||||
<Text style={{fontFamily: 'sans-serif', fontWeight: 'bold'}}>
|
||||
|
||||
Reference in New Issue
Block a user