showing results for - "react center a text"
Kierra
05 Jan 2017
1 Add textAlign: 'center' and it will center the text horizontally.
2
3  headline: {
4    textAlign: 'center', // <-- the magic
5    fontWeight: 'bold',
6    fontSize: 18,
7    marginTop: 0,
8    width: 200,
9    backgroundColor: 'yellow',
10  }