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?