How to add code highlighting?

The only code highlighting I got to work is some weird version of Codemirror:

I’ve tried react-native-syntax-highlighte but keep getting an error.

Anyone have an example of a better code highlighter please?

You could add a class is styles via StyleSheet. The old sample project from expo had a nice example of code highlighting using css in the styles = Stylesheet.create({ }). It made the background of the text light gray and applied other simple css.