conorhastings / react-native-syntax-highlighter

a syntax highlighter for react native using https://github.com/conorhastings/react-syntax-highlighter under the hood
MIT License
168 stars 24 forks source link

Slow Rendering #14

Closed Kida007 closed 3 years ago

Kida007 commented 6 years ago

on a device without development mode, when I navigate to a screen with SyntaxHighlighter (conditional rendering ), the UI freezes for a second. but that single glitch, everything works fine.

is there a way to preload it ?

lefrankleal commented 5 years ago

have you found the way?

Kida007 commented 5 years ago

sorry, I have not really followed up on that !

myhamdaoui commented 4 years ago

I suggest using a loader, once the componenet mounts you render the SyntaxHighlighter else you render the loader