Skip to content

Instantly share code, notes, and snippets.

@brentvatne
Last active December 9, 2018 00:46
Show Gist options
  • Save brentvatne/ed98472bc8605484862c7adfdee8d5ca to your computer and use it in GitHub Desktop.
Save brentvatne/ed98472bc8605484862c7adfdee8d5ca to your computer and use it in GitHub Desktop.
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class TextLineHeightBug extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</Text>
<Text style={styles.instructions}>
To get started, edit index.android.js. Ha ha! Just kidding, do not
edit this, it is an example of how things look wrong on multiple lines.
</Text>
<Text style={styles.instructions}>
oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo
</Text>
<Text style={styles.instructions}>
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
</Text>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCFF',
paddingHorizontal: 50,
},
welcome: {
fontSize: 20,
textAlign: 'center',
margin: 10,
},
instructions: {
textAlign: 'center',
color: '#333333',
marginBottom: 5,
fontSize: 14,
lineHeight: 22,
},
});
AppRegistry.registerComponent('TextLineHeightBug', () => TextLineHeightBug);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment