mirror of
				https://gitcode.com/gh_mirrors/re/react-native-pushy.git
				synced 2025-10-31 13:23:12 +08:00 
			
		
		
		
	v10.10.1
This commit is contained in:
		| @@ -9,7 +9,8 @@ | ||||
|     "test": "jest", | ||||
|     "test:e2e": "detox test --configuration android.emu.debug", | ||||
|     "lint": "eslint .", | ||||
|     "postinstall": "patch-package" | ||||
|     "postinstall": "patch-package", | ||||
|     "apk": "cd android && ./gradlew assembleRelease" | ||||
|   }, | ||||
|   "dependencies": { | ||||
|     "patch-package": "^6.5.1", | ||||
|   | ||||
| @@ -1,6 +1,6 @@ | ||||
| { | ||||
|   "name": "react-native-update", | ||||
|   "version": "10.10.0", | ||||
|   "version": "10.10.1", | ||||
|   "description": "react-native hot update", | ||||
|   "main": "src/index", | ||||
|   "scripts": { | ||||
|   | ||||
| @@ -273,6 +273,12 @@ export const PushyProvider = ({ | ||||
|       if (payload && payload.type) { | ||||
|         if (payload.type === '__rnPushyVersionHash') { | ||||
|           await checkUpdate({ toHash: payload.data }); | ||||
|           if (updateInfoRef.current && updateInfoRef.current.upToDate) { | ||||
|             Alert.alert( | ||||
|               '提示', | ||||
|               '当前尚未检测到更新版本,如果是首次扫码,请等待服务器端生成补丁包后再试(约10秒)', | ||||
|             ); | ||||
|           } | ||||
|           return true; | ||||
|         } | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 sunnylqm
					sunnylqm