Skip to content

Commit 5c5c782

Browse files
committed
fix: add encoding polyfil
1 parent 5b4b1e6 commit 5c5c782

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

rn-test.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ module.exports = {
55
runner: 'mocha',
66
modules: [
77
'react-native-url-polyfill',
8-
'web-streams-polyfill'
8+
'web-streams-polyfill',
9+
'text-encoding'
910
],
1011
patches: [{
1112
path: require.resolve('react-native-polyfill-globals/patches/react-native+0.63.3.patch')

rn-test.require.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

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

67
polyfillURL()
78
polyfillReadableStream()
9+
polyfillEncoding()

0 commit comments

Comments
 (0)