@openfort/react-native 1.1.1 → 1.1.2

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.
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
2
2
  // biome-ignore lint: need to import react
3
3
  import React, { useCallback, useEffect, useRef } from 'react';
4
- import { AppState, Platform, View } from 'react-native';
4
+ import { Platform, View } from 'react-native';
5
5
  import WebView from 'react-native-webview';
6
6
  import { logger } from '../lib/logger';
7
7
  import { handleSecureStorageMessage, isSecureStorageMessage } from './storage';
@@ -15,25 +15,24 @@ import { handleSecureStorageMessage, isSecureStorageMessage } from './storage';
15
15
  export const EmbeddedWalletWebView = ({ client, onProxyStatusChange, debug }) => {
16
16
  const webViewRef = useRef(null);
17
17
  // Handle app state changes to monitor WebView health
18
- useEffect(() => {
19
- const handleAppStateChange = async (nextAppState) => {
20
- if (nextAppState === 'active') {
21
- // Check if embedded wallet is still responsive
22
- try {
23
- await client.embeddedWallet.ping(500);
24
- // if (!isResponsive) {
25
- // onProxyStatusChange?.('reloading');
26
- // // client.embeddedWallet.reload();
27
- // }
28
- }
29
- catch (error) {
30
- logger.warn('Failed to ping embedded wallet', error);
31
- }
32
- }
33
- };
34
- const subscription = AppState.addEventListener('change', handleAppStateChange);
35
- return () => subscription?.remove();
36
- }, [client, onProxyStatusChange]);
18
+ // useEffect(() => {
19
+ // const handleAppStateChange = async (nextAppState: string) => {
20
+ // if (nextAppState === 'active') {
21
+ // // Check if embedded wallet is still responsive
22
+ // try {
23
+ // await client.embeddedWallet.ping(500)
24
+ // // if (!isResponsive) {
25
+ // // onProxyStatusChange?.('reloading');
26
+ // // // client.embeddedWallet.reload();
27
+ // // }
28
+ // } catch (error) {
29
+ // logger.warn('Failed to ping embedded wallet', error)
30
+ // }
31
+ // }
32
+ // }
33
+ // const subscription = AppState.addEventListener('change', handleAppStateChange)
34
+ // return () => subscription?.remove()
35
+ // }, [client, onProxyStatusChange])
37
36
  // Handle WebView load events
38
37
  const handleLoad = useCallback(() => {
39
38
  onProxyStatusChange?.('loaded');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfort/react-native",
3
3
  "main": "dist/index.js",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "license": "MIT",
6
6
  "description": "React Native SDK for Openfort platform integration",
7
7
  "repository": {