Skip to content

Commit

Permalink
fix: add encoding polyfil
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed Apr 8, 2021
1 parent e233ed0 commit 1f530b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rn-test.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ module.exports = {
runner: 'mocha',
modules: [
'react-native-url-polyfill',
'web-streams-polyfill'
'web-streams-polyfill',
'text-encoding'
],
patches: [{
path: require.resolve('react-native-polyfill-globals/patches/react-native+0.63.3.patch')
Expand Down
2 changes: 2 additions & 0 deletions rn-test.require.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

const { polyfill: polyfillReadableStream } = require('react-native-polyfill-globals/src/readable-stream')
const { polyfill: polyfillURL } = require('react-native-polyfill-globals/src/url')
const { polyfill: polyfillEncoding } = require('react-native-polyfill-globals/src/encoding')

polyfillURL()
polyfillReadableStream()
polyfillEncoding()

0 comments on commit 1f530b0

Please sign in to comment.