Talking-Wallet / wallet-base

MIT License
2 stars 0 forks source link

Add "React Native for Web" support #1

Open bitkojine opened 2 weeks ago

bitkojine commented 2 weeks ago

BlueWallet currently does not build for the web out-of-the-box. This needs to change to improve the development experience.

We are using Expo, but the expo-file-system nor the @dr.pogodin/react-native-fs npm package has web support.

File system operations already present in the app must be mocked or implemented for the web.

Concrete implementations are optional now, as we're only interested in getting the app to build for the web.

Documentation for the file system API currently in use can be found here: https://github.com/birdofpreyru/react-native-fs/blob/master/README.md

bitkojine commented 2 weeks ago

I am working on this at the moment

bitkojine commented 2 weeks ago

Done for the day with Uncaught TypeError: ecc.isPoint is not a function

not yet sure how deep this rabbit hole goes, but I'm hoping it renders some UI in the browser once enough of these dependencies are plucked out or bundled up.

I've committed my Work in Progress to this branch: https://github.com/Talking-Wallet/wallet-base/commits/v7.0.2-a648dcc-add-web-build-support/

The branch is based on the release commit a648dcc for version 7.0.2

bitkojine commented 2 weeks ago

There might be useful information here: https://dev.to/mikehamilton00/adding-web-support-to-a-react-native-project-in-2023-4m4l