inokawa / react-native-react-bridge

An easy way to integrate your React (or Preact/React Native Web) app into React Native app with WebView.
https://www.npmjs.com/package/react-native-react-bridge
MIT License
256 stars 18 forks source link

How to polyfill Buffer #149

Closed ieow closed 9 months ago

ieow commented 9 months ago

Describe the bug A clear and concise description of what the bug is. Buffer does not exist in browser (WebView). How to polyfill Buffer in WebView

To Reproduce Steps to reproduce the behavior. Buffer.from

Expected behavior A clear and concise description of what you expected to happen.

Platform:

Additional context Add any other context about the problem here.

ieow commented 9 months ago

Can add resolve in metro.config