Created
March 21, 2017 07:36
-
-
Save amite/67c75bf7b390dd07c7fa6572f149146f to your computer and use it in GitHub Desktop.
Changing text color in react native
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default class App extends React.Component { | |
| render() { | |
| return ( | |
| <View style={styles.container}> | |
| <Text>Open up App.js to start working on your app!</Text> | |
| <Text style={styles.bigblue}>Changes you make reload.</Text> | |
| <Text>Shake your phone to open the developer menu.</Text> | |
| </View> | |
| ); | |
| } | |
| } | |
| const styles = StyleSheet.create({ | |
| container: { | |
| flex: 1, | |
| backgroundColor: '#fff', | |
| alignItems: 'center', | |
| justifyContent: 'center', | |
| }, | |
| bigblue: { | |
| color: 'blue', | |
| fontWeight: 'bold', | |
| fontSize: 12, | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment