I want to use a node library which relies on stream (require('stream')
) within a React Native project.
This is failing with error stream could not be found within the project
because stream
is a nodejs package not available in React Native.
What can I do ?
I read that https://github.com/browserify/stream-browserify allows the use of streams in the browser. But how can I make the require('stream')
in the library (that I don't control) require stream-browserify
instead.