Skip to content

Instantly share code, notes, and snippets.

@amite
Created March 21, 2017 07:36
Show Gist options
  • Select an option

  • Save amite/67c75bf7b390dd07c7fa6572f149146f to your computer and use it in GitHub Desktop.

Select an option

Save amite/67c75bf7b390dd07c7fa6572f149146f to your computer and use it in GitHub Desktop.
Changing text color in react native
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