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:
Mehdi Mulani
2018-09-07 11:26:22 -07:00
committed by Facebook Github Bot
parent 2c3e4ec06b
commit 335927db44
3 changed files with 203 additions and 190 deletions

View File

@@ -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'}}>