We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've tried:
text: { textAlign: 'center' }
but that doesn't work.
I've also tried adding the same styling to the View that surrounds the Markdown, but that doesn't work either.
When I try
paragraph: { textAlign: 'center' }
that messes up everything! in fact, even if i just add
paragraph: {}
then all the text gets ruined and displays only one word per line for some reason.
How can I center align text?? Here are all the relevant bits:
renderDescription(description) { if (description === '' || description === null) return return (<Markdown styles={styles.resource.description}>{description}</Markdown>) } <View key={resource.id} style={styles.resource.container}> { this.renderDescription(resource.description) } </View> const styles = { resource: { container: { marginTop: 20, marginBottom: 20, }, description: { view: { marginTop: 10 }, text: { fontFamily: 'Gotham-Book', textAlign: 'center', // Doesn't work }, }, } }
The text was updated successfully, but these errors were encountered:
Any updates?
Sorry, something went wrong.
No branches or pull requests
I've tried:
but that doesn't work.
I've also tried adding the same styling to the View that surrounds the Markdown, but that doesn't work either.
When I try
that messes up everything! in fact, even if i just add
then all the text gets ruined and displays only one word per line for some reason.
How can I center align text?? Here are all the relevant bits:
The text was updated successfully, but these errors were encountered: