@expo/metro-runtime 3.2.1 → 3.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.
@@ -1,3 +1,3 @@
1
- import LoadingView from 'react-native/Libraries/Utilities/LoadingView';
1
+ declare let LoadingView: typeof import('react-native/Libraries/Utilities/LoadingView').default;
2
2
  export default LoadingView;
3
3
  //# sourceMappingURL=LoadingView.native.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingView.native.d.ts","sourceRoot":"","sources":["../src/LoadingView.native.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,8CAA8C,CAAC;AAEvE,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"LoadingView.native.d.ts","sourceRoot":"","sources":["../src/LoadingView.native.ts"],"names":[],"mappings":"AAAA,QAAA,IAAI,WAAW,EAAE,cAAc,8CAA8C,EAAE,OAAO,CAAC;AAWvF,eAAe,WAAW,CAAC"}
@@ -1,8 +1,15 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const LoadingView_1 = __importDefault(require("react-native/Libraries/Utilities/LoadingView"));
7
- exports.default = LoadingView_1.default;
3
+ let LoadingView;
4
+ try {
5
+ LoadingView = require('react-native/Libraries/Utilities/LoadingView');
6
+ }
7
+ catch {
8
+ // In react-native 0.75.0 LoadingView was renamed to DevLoadingView
9
+ try {
10
+ LoadingView = require('react-native/Libraries/Utilities/DevLoadingView');
11
+ }
12
+ catch { }
13
+ }
14
+ exports.default = LoadingView;
8
15
  //# sourceMappingURL=LoadingView.native.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingView.native.js","sourceRoot":"","sources":["../src/LoadingView.native.ts"],"names":[],"mappings":";;;;;AAAA,+FAAuE;AAEvE,kBAAe,qBAAW,CAAC","sourcesContent":["import LoadingView from 'react-native/Libraries/Utilities/LoadingView';\n\nexport default LoadingView;\n"]}
1
+ {"version":3,"file":"LoadingView.native.js","sourceRoot":"","sources":["../src/LoadingView.native.ts"],"names":[],"mappings":";;AAAA,IAAI,WAAkF,CAAC;AAEvF,IAAI;IACF,WAAW,GAAG,OAAO,CAAC,8CAA8C,CAAC,CAAC;CACvE;AAAC,MAAM;IACN,mEAAmE;IACnE,IAAI;QACF,WAAW,GAAG,OAAO,CAAC,iDAAiD,CAAC,CAAC;KAC1E;IAAC,MAAM,GAAE;CACX;AAED,kBAAe,WAAW,CAAC","sourcesContent":["let LoadingView: typeof import('react-native/Libraries/Utilities/LoadingView').default;\n\ntry {\n LoadingView = require('react-native/Libraries/Utilities/LoadingView');\n} catch {\n // In react-native 0.75.0 LoadingView was renamed to DevLoadingView\n try {\n LoadingView = require('react-native/Libraries/Utilities/DevLoadingView');\n } catch {}\n}\n\nexport default LoadingView;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@expo/metro-runtime",
3
- "version": "3.2.1",
3
+ "version": "3.2.3",
4
4
  "description": "Tools for making advanced Metro bundler features work",
5
5
  "sideEffects": true,
6
6
  "types": "build",
@@ -36,5 +36,5 @@
36
36
  "peerDependencies": {
37
37
  "react-native": "*"
38
38
  },
39
- "gitHead": "ee4f30ef3b5fa567ad1bf94794197f7683fdd481"
39
+ "gitHead": "0e91c05bf4a7dcd6837c8031d0d32b446212b53d"
40
40
  }
@@ -1,3 +1,12 @@
1
- import LoadingView from 'react-native/Libraries/Utilities/LoadingView';
1
+ let LoadingView: typeof import('react-native/Libraries/Utilities/LoadingView').default;
2
+
3
+ try {
4
+ LoadingView = require('react-native/Libraries/Utilities/LoadingView');
5
+ } catch {
6
+ // In react-native 0.75.0 LoadingView was renamed to DevLoadingView
7
+ try {
8
+ LoadingView = require('react-native/Libraries/Utilities/DevLoadingView');
9
+ } catch {}
10
+ }
2
11
 
3
12
  export default LoadingView;