diff --git a/Example/testHotUpdate/android/app/src/main/res/xml/network_security_config.xml b/Example/testHotUpdate/android/app/src/main/res/xml/network_security_config.xml index 881c837..2439f15 100644 --- a/Example/testHotUpdate/android/app/src/main/res/xml/network_security_config.xml +++ b/Example/testHotUpdate/android/app/src/main/res/xml/network_security_config.xml @@ -1,8 +1,4 @@ - - 10.0.2.2 - localhost - cos.pgyer.com - + diff --git a/Example/testHotUpdate/src/TestConsole.js b/Example/testHotUpdate/src/TestConsole.js index c2806a4..27cc930 100644 --- a/Example/testHotUpdate/src/TestConsole.js +++ b/Example/testHotUpdate/src/TestConsole.js @@ -8,11 +8,11 @@ import { TextInput, Button, StyleSheet, - SafeAreaView, Text, View, TouchableOpacity, } from 'react-native'; +import { SafeAreaView } from 'react-native-safe-area-context'; import {PushyModule} from 'react-native-update/src/core'; const Hash = '9D5CE6EBA420717BE7E7D308B11F8207681B066C951D68F3994D19828F342474'; diff --git a/package.json b/package.json index d8fc683..b791241 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "10.36.2", + "version": "10.36.3", "description": "react-native hot update", "main": "src/index", "scripts": { diff --git a/src/utils.ts b/src/utils.ts index cbb75da..e5f9b2a 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -111,17 +111,6 @@ export const enhancedFetch = async ( isRetry = false, ): Promise => { return fetch(url, params) - .then(r => { - if (r.ok) { - return r; - } - throw Error( - i18n.t('error_http_status', { - status: r.status, - statusText: r.statusText, - }), - ); - }) .catch(e => { log('fetch error', url, e); if (isRetry) {