zh-web-sdk 2.4.1 → 2.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -116,7 +116,7 @@ We forward events that come from the UI to the Native App using the `postMessage
116
116
  - `CRYPTO_SELL_FAILED` Send when something went wrong in the flow (errored state)
117
117
 
118
118
  #### Messages
119
- To control the `WebView` you can also send messages *down*, using the `postMessage` API. Currently the accepted messages are for the respective Apps are:
119
+ To control the `WebView` you can also send messages *down*, using the `postMessage` API. Currently the accepted messages for the respective Apps are:
120
120
  - **Onboarding**
121
121
  - `{type: "OPEN_MODAL", payload:{jwt: "<JWT_HERE>", appIdentifier: "onboarding"} }`: It will open the onboarding modal with the JWT provided
122
122
  - `{type: "CLOSE_MODAL", payload:{appIdentifier: "onboarding"}}`: It will close the onboarding modal
@@ -145,7 +145,7 @@ The example below shows how you can implement the mentioned methods in a `react-
145
145
 
146
146
  ```jsx
147
147
  const sdkMobileServer = 'https://sdk-mobile.cert.zerohash.com/v1'
148
- const zeroHashAppsURL = 'https://web-sdk.zerohash.com/'
148
+ const zeroHashAppsURL = 'https://web-sdk.cert.zerohash.com/'
149
149
  const App = () => {
150
150
  const webViewRef = useRef<WebView>(null)
151
151
  const [isWebViewOpen, setIsWebViewOpen] = React.useState(false)