This repository holds two things:
| Path | What it is |
|---|---|
react-native-klasha-webview/ |
the published npm package — full documentation is here |
| this directory | an Expo demo app that consumes the local package |
It is an npm workspace, so a single npm install at the root wires both up.
npm install
npx expo startThen press i / a, or scan the QR code with Expo Go.
The demo needs a Klasha merchant key. Either edit MERCHANT_KEY in
App.js or set an environment variable before starting:
EXPO_PUBLIC_KLASHA_MERCHANT_KEY="your-key" npx expo startThe demo runs with isTestMode on, so it uses the Klasha sandbox.
A real merchant key used to be hardcoded in
App.jsand is still in this repository's git history. If it was yours, rotate it.
npm testwhich runs the package's Jest suite (react-native-klasha-webview/__tests__).
- Expo SDK 57 / React Native 0.86 / React 19
react-native-webview13.16.1 (the version Expo SDK 57 pins)
Please fork and submit a pull request.
If this saved you time, a star on the repo is appreciated, and you can follow me on Twitter.
— Dansteve Adekanbi
MIT — see LICENSE.