v10.5.4
This commit is contained in:
parent
9fd6293037
commit
6244bb9af2
@ -18,7 +18,7 @@
|
|||||||
"react-native": "0.69.8",
|
"react-native": "0.69.8",
|
||||||
"react-native-paper": "^5.12.1",
|
"react-native-paper": "^5.12.1",
|
||||||
"react-native-safe-area-context": "^4.8.2",
|
"react-native-safe-area-context": "^4.8.2",
|
||||||
"react-native-update": "^10.2.6",
|
"react-native-update": "^10.5.3",
|
||||||
"react-native-vector-icons": "^10.0.3"
|
"react-native-vector-icons": "^10.0.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-native-update",
|
"name": "react-native-update",
|
||||||
"version": "10.5.3",
|
"version": "10.5.4",
|
||||||
"description": "react-native hot update",
|
"description": "react-native hot update",
|
||||||
"main": "src/index",
|
"main": "src/index",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -50,9 +50,11 @@ export class Pushy {
|
|||||||
version = cInfo.pushy;
|
version = cInfo.pushy;
|
||||||
|
|
||||||
constructor(options: PushyOptions) {
|
constructor(options: PushyOptions) {
|
||||||
|
if (Platform.OS === 'ios' || Platform.OS === 'android') {
|
||||||
if (!options.appKey) {
|
if (!options.appKey) {
|
||||||
throw new Error('appKey is required');
|
throw new Error('appKey is required');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.setOptions(options);
|
this.setOptions(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,6 +120,9 @@ export const PushyProvider = ({
|
|||||||
showAlert('更新检查失败', e.message);
|
showAlert('更新检查失败', e.message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!info) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
updateInfoRef.current = info;
|
updateInfoRef.current = info;
|
||||||
setUpdateInfo(info);
|
setUpdateInfo(info);
|
||||||
if (info.expired) {
|
if (info.expired) {
|
||||||
|
Loading…
Reference in New Issue
Block a user