react-native-update 10.2.2 → 10.2.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/provider.tsx +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-update",
3
- "version": "10.2.2",
3
+ "version": "10.2.3",
4
4
  "description": "react-native hot update",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
package/src/provider.tsx CHANGED
@@ -148,6 +148,10 @@ export const PushyProvider = ({
148
148
  const markSuccess = client.markSuccess;
149
149
 
150
150
  useEffect(() => {
151
+ if (__DEV__) {
152
+ console.info('检测到在DEV环境,不会进行热更新检查');
153
+ return;
154
+ }
151
155
  const { strategy, dismissErrorAfter, autoMarkSuccess } = options;
152
156
  if (isFirstTime && autoMarkSuccess) {
153
157
  markSuccess();