react-native-purchases icon indicating copy to clipboard operation
react-native-purchases copied to clipboard

[WIP] Add web target

Open tonidero opened this issue 4 months ago • 1 comments

This adds a web target to our RN SDK and just provides fake responses to any methods call in a web environment as previously added only for an Expo Go environment. In order to provide this functionality, this adds react-native-web as a peer dependency, which seems to be the standard way to add a web target to react native projects and is also used by Expo. This dependency implements some (but not all) of the RN types but on web.

This also adds a new Expo purchaseTester app, since it's becoming more useful to be able to test on it.

TODO

  • [ ] Fix existing purchase tester to work with web as well
  • [ ] Cleanup

tonidero avatar Jun 26 '25 13:06 tonidero