react-native-3rddigital-appupdate 1.0.0 → 1.0.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.
- package/README.md +4 -29
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# react-native-
|
|
1
|
+
# react-native-3rddigital-appupdate
|
|
2
2
|
|
|
3
3
|
A React Native library for **seamless Over-The-Air (OTA) updates** with:
|
|
4
4
|
|
|
@@ -10,9 +10,9 @@ A React Native library for **seamless Over-The-Air (OTA) updates** with:
|
|
|
10
10
|
## 🚀 Installation
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
-
npm install react-native-
|
|
13
|
+
npm install react-native-3rddigital-appupdate
|
|
14
14
|
# or
|
|
15
|
-
yarn add react-native-
|
|
15
|
+
yarn add react-native-3rddigital-appupdate
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
This package has peer dependencies that also need to be installed:
|
|
@@ -34,7 +34,7 @@ cd ios && pod install
|
|
|
34
34
|
```sh
|
|
35
35
|
import React, { useEffect } from 'react';
|
|
36
36
|
import { View, Text } from 'react-native';
|
|
37
|
-
import { OTAProvider, checkOTAUpdate } from 'react-native-
|
|
37
|
+
import { OTAProvider, checkOTAUpdate } from 'react-native-3rddigital-appupdate';
|
|
38
38
|
|
|
39
39
|
const App = () => {
|
|
40
40
|
useEffect(() => {
|
|
@@ -100,18 +100,6 @@ Props (LoaderOptions):
|
|
|
100
100
|
| `containerStyle` | ViewStyle | `{}` | Custom style for the loader container |
|
|
101
101
|
| `textStyle` | TextStyle | `{}` | Custom style for the loader text |
|
|
102
102
|
|
|
103
|
-
Usage:
|
|
104
|
-
|
|
105
|
-
```sh
|
|
106
|
-
AppLoader.show({
|
|
107
|
-
text: "Downloading...",
|
|
108
|
-
color: "#ff0000",
|
|
109
|
-
backgroundColor: "rgba(0,0,0,0.6)",
|
|
110
|
-
textColor: "#fff",
|
|
111
|
-
});
|
|
112
|
-
AppLoader.hide();
|
|
113
|
-
```
|
|
114
|
-
|
|
115
103
|
🔹 Dialog (AppAlertDialog)
|
|
116
104
|
|
|
117
105
|
- Global confirmation dialog used to prompt users for updates.
|
|
@@ -134,19 +122,6 @@ Props (DialogOptions):
|
|
|
134
122
|
| `confirmTextStyle` | TextStyle | `{}` | Style override for confirm button text |
|
|
135
123
|
| `overlayColor` | string | `'rgba(0,0,0,0.3)'` | Overlay background color |
|
|
136
124
|
|
|
137
|
-
Usage:
|
|
138
|
-
|
|
139
|
-
```sh
|
|
140
|
-
AppAlertDialog.showMessage({
|
|
141
|
-
title: "Update Available",
|
|
142
|
-
message: "A new version is ready to install.",
|
|
143
|
-
confirmText: "Update Now",
|
|
144
|
-
cancelText: "Later",
|
|
145
|
-
onConfirm: () => console.log("User confirmed"),
|
|
146
|
-
onCancel: () => console.log("User cancelled"),
|
|
147
|
-
});
|
|
148
|
-
```
|
|
149
|
-
|
|
150
125
|
## 🖥️ CLI Tool – appupdate
|
|
151
126
|
|
|
152
127
|
- This package also provides a CLI for building and uploading OTA bundles.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-3rddigital-appupdate",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A React Native library for seamless over-the-air (OTA) updates with version checks, automatic bundle download, and customizable user prompts for iOS and Android.",
|
|
5
5
|
"main": "./lib/module/index.js",
|
|
6
6
|
"types": "./lib/typescript/src/index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "bob build",
|
|
36
|
-
"example": "yarn workspace react-native-
|
|
36
|
+
"example": "yarn workspace react-native-3rddigital-appupdate-example",
|
|
37
37
|
"test": "jest",
|
|
38
38
|
"typecheck": "tsc",
|
|
39
39
|
"lint": "eslint \"**/*.{js,ts,tsx}\"",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
],
|
|
49
49
|
"repository": {
|
|
50
50
|
"type": "git",
|
|
51
|
-
"url": "git+https://github.com/latest3rddigital/react-native-
|
|
51
|
+
"url": "git+https://github.com/latest3rddigital/react-native-3rddigital-appupdate.git"
|
|
52
52
|
},
|
|
53
|
-
"author": "Sagar Bhavsar <sagar@3rddigital.com> (https://github.com/latest3rddigital/react-native-
|
|
53
|
+
"author": "Sagar Bhavsar <sagar@3rddigital.com> (https://github.com/latest3rddigital/react-native-3rddigital-appupdate)",
|
|
54
54
|
"license": "MIT",
|
|
55
55
|
"bugs": {
|
|
56
|
-
"url": "https://github.com/latest3rddigital/react-native-
|
|
56
|
+
"url": "https://github.com/latest3rddigital/react-native-3rddigital-appupdate/issues"
|
|
57
57
|
},
|
|
58
|
-
"homepage": "https://github.com/latest3rddigital/react-native-
|
|
58
|
+
"homepage": "https://github.com/latest3rddigital/react-native-3rddigital-appupdate#readme",
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"registry": "https://registry.npmjs.org/"
|
|
61
61
|
},
|