diff --git a/src/index.js b/src/index.js index 11e5c5b..e95254b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,6 @@ import React from 'react'; import { Text, ScrollView, Platform } from 'react-native'; +import "./prism-config.js"; import SyntaxHighlighter from 'react-syntax-highlighter'; import SyntaxHighlighterPrism from 'react-syntax-highlighter/prism'; import { createStyleObject } from 'react-syntax-highlighter/create-element'; diff --git a/src/prism-config.js b/src/prism-config.js new file mode 100644 index 0000000..27186cf --- /dev/null +++ b/src/prism-config.js @@ -0,0 +1 @@ +global.Prism = { disableWorkerMessageHandler: true }; \ No newline at end of file