diff --git a/packages/ipfs-http-client/src/pubsub/subscribe.js b/packages/ipfs-http-client/src/pubsub/subscribe.js index ab5ee3c2db..1d3852da09 100644 --- a/packages/ipfs-http-client/src/pubsub/subscribe.js +++ b/packages/ipfs-http-client/src/pubsub/subscribe.js @@ -34,7 +34,11 @@ module.exports = configure((api, options) => { arg: topic, ...options }), - headers: options.headers + headers: options.headers, + // Enables text streaming support for React Native when using @react-native-community/fetch + reactNative: { + textStreaming: true + } }) .catch((err) => { // Initial subscribe fail, ensure we clean up