expo 46.0.16 → 47.0.0-beta.1
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/Expo.podspec +1 -1
- package/android/build.gradle +2 -2
- package/build/Expo.d.ts +1 -0
- package/build/Expo.d.ts.map +1 -1
- package/build/Expo.fx.d.ts +0 -1
- package/build/Expo.fx.d.ts.map +1 -1
- package/build/Expo.fx.js +11 -38
- package/build/Expo.fx.js.map +1 -1
- package/build/Expo.fx.web.d.ts +0 -1
- package/build/Expo.fx.web.d.ts.map +1 -1
- package/build/Expo.fx.web.js +3 -24
- package/build/Expo.fx.web.js.map +1 -1
- package/build/Expo.js +1 -0
- package/build/Expo.js.map +1 -1
- package/build/launch/registerRootComponent.d.ts +11 -1
- package/build/launch/registerRootComponent.d.ts.map +1 -1
- package/build/launch/registerRootComponent.js +7 -2
- package/build/launch/registerRootComponent.js.map +1 -1
- package/build/launch/withDevTools.d.ts +7 -0
- package/build/launch/withDevTools.d.ts.map +1 -0
- package/build/launch/withDevTools.js +41 -0
- package/build/launch/withDevTools.js.map +1 -0
- package/build/proxies/NativeModules.d.ts +19 -0
- package/build/proxies/NativeModules.d.ts.map +1 -0
- package/build/proxies/NativeModules.js +110 -0
- package/build/proxies/NativeModules.js.map +1 -0
- package/bundledNativeModules.json +91 -92
- package/config-plugins.d.ts +1 -0
- package/config-plugins.js +1 -0
- package/config.d.ts +1 -0
- package/config.js +1 -0
- package/package.json +20 -16
- package/scripts/resolveAppEntry.js +3 -0
- package/build/environment/DevAppContainer.d.ts +0 -7
- package/build/environment/DevAppContainer.d.ts.map +0 -1
- package/build/environment/DevAppContainer.js +0 -10
- package/build/environment/DevAppContainer.js.map +0 -1
- package/build/environment/react-native-logs.fx.d.ts +0 -2
- package/build/environment/react-native-logs.fx.d.ts.map +0 -1
- package/build/environment/react-native-logs.fx.js +0 -29
- package/build/environment/react-native-logs.fx.js.map +0 -1
- package/build/launch/RecoveryProps.d.ts +0 -3
- package/build/launch/RecoveryProps.d.ts.map +0 -1
- package/build/launch/RecoveryProps.js +0 -13
- package/build/launch/RecoveryProps.js.map +0 -1
- package/build/launch/withExpoRoot.d.ts +0 -4
- package/build/launch/withExpoRoot.d.ts.map +0 -1
- package/build/launch/withExpoRoot.js +0 -21
- package/build/launch/withExpoRoot.js.map +0 -1
- package/build/launch/withExpoRoot.types.d.ts +0 -12
- package/build/launch/withExpoRoot.types.d.ts.map +0 -1
- package/build/launch/withExpoRoot.types.js +0 -2
- package/build/launch/withExpoRoot.types.js.map +0 -1
- package/build/launch/withExpoRoot.web.d.ts +0 -4
- package/build/launch/withExpoRoot.web.d.ts.map +0 -1
- package/build/launch/withExpoRoot.web.js +0 -11
- package/build/launch/withExpoRoot.web.js.map +0 -1
package/Expo.podspec
CHANGED
|
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package['license']
|
|
11
11
|
s.author = package['author']
|
|
12
12
|
s.homepage = package['homepage']
|
|
13
|
-
s.platform = :ios, '
|
|
13
|
+
s.platform = :ios, '13.0'
|
|
14
14
|
s.source = { git: 'https://github.com/expo/expo.git' }
|
|
15
15
|
s.static_framework = true
|
|
16
16
|
s.header_dir = 'Expo'
|
package/android/build.gradle
CHANGED
|
@@ -33,7 +33,7 @@ def getRNVersion() {
|
|
|
33
33
|
ensureDependeciesWereEvaluated(project)
|
|
34
34
|
|
|
35
35
|
group = 'host.exp.exponent'
|
|
36
|
-
version = '
|
|
36
|
+
version = '47.0.0-beta.1'
|
|
37
37
|
|
|
38
38
|
buildscript {
|
|
39
39
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -104,7 +104,7 @@ android {
|
|
|
104
104
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
105
105
|
targetSdkVersion safeExtGet("targetSdkVersion", 31)
|
|
106
106
|
versionCode 1
|
|
107
|
-
versionName "
|
|
107
|
+
versionName "47.0.0-beta.1"
|
|
108
108
|
consumerProguardFiles("proguard-rules.pro")
|
|
109
109
|
}
|
|
110
110
|
lintOptions {
|
package/build/Expo.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import './Expo.fx';
|
|
|
2
2
|
import * as Logs from './logs/Logs';
|
|
3
3
|
export { Logs };
|
|
4
4
|
export { disableErrorHandling } from './errors/ExpoErrorManager';
|
|
5
|
+
export { getNativeModuleIfExists } from './proxies/NativeModules';
|
|
5
6
|
export { default as registerRootComponent } from './launch/registerRootComponent';
|
|
6
7
|
//# sourceMappingURL=Expo.d.ts.map
|
package/build/Expo.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expo.d.ts","sourceRoot":"","sources":["../src/Expo.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAC;AAEnB,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC"}
|
|
1
|
+
{"version":3,"file":"Expo.d.ts","sourceRoot":"","sources":["../src/Expo.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAC;AAEnB,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC"}
|
package/build/Expo.fx.d.ts
CHANGED
package/build/Expo.fx.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expo.fx.d.ts","sourceRoot":"","sources":["../src/Expo.fx.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,OAAO,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"Expo.fx.d.ts","sourceRoot":"","sources":["../src/Expo.fx.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAEnC,OAAO,0BAA0B,CAAC;AAElC,OAAO,YAAY,CAAC"}
|
package/build/Expo.fx.js
CHANGED
|
@@ -1,35 +1,17 @@
|
|
|
1
1
|
import './environment/validate.fx';
|
|
2
2
|
// load remote logging for compatibility with custom development clients
|
|
3
3
|
import './environment/logging.fx';
|
|
4
|
-
import './environment/react-native-logs.fx';
|
|
5
4
|
// load expo-asset immediately to set a custom `source` transformer in React Native
|
|
6
5
|
import 'expo-asset';
|
|
7
6
|
import Constants, { ExecutionEnvironment } from 'expo-constants';
|
|
8
7
|
import * as Font from 'expo-font';
|
|
9
8
|
import { NativeModulesProxy, Platform } from 'expo-modules-core';
|
|
10
|
-
import
|
|
11
|
-
import { AppRegistry, StyleSheet } from 'react-native';
|
|
12
|
-
import DevAppContainer from './environment/DevAppContainer';
|
|
9
|
+
import ReactNative, { StyleSheet } from 'react-native';
|
|
13
10
|
import { createErrorHandler } from './errors/ExpoErrorManager';
|
|
14
|
-
|
|
15
|
-
// `false` when running in bare workflow, custom dev clients, or `eas build`s (managed or bare).
|
|
16
|
-
// This should be used to ensure code that _should_ exist is treated as such.
|
|
17
|
-
const isManagedEnvironment = Constants.executionEnvironment === ExecutionEnvironment.Standalone ||
|
|
18
|
-
Constants.executionEnvironment === ExecutionEnvironment.StoreClient;
|
|
11
|
+
import { createProxyForNativeModules } from './proxies/NativeModules';
|
|
19
12
|
// If expo-font is installed and the style preprocessor is available, use it to parse fonts.
|
|
20
13
|
if (StyleSheet.setStyleAttributePreprocessor) {
|
|
21
|
-
|
|
22
|
-
// Temporarily disable console.warn() in dev mode,
|
|
23
|
-
// because the experimented `StyleSheet.setStyleAttributePreprocessor` will show a warning about
|
|
24
|
-
// `Overwriting fontFamily style attribute preprocessor`.
|
|
25
|
-
const originalConsoleWarn = global.console.warn;
|
|
26
|
-
global.console.warn = () => { };
|
|
27
|
-
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
|
|
28
|
-
global.console.warn = originalConsoleWarn;
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
|
|
32
|
-
}
|
|
14
|
+
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
|
|
33
15
|
}
|
|
34
16
|
// Asserts if bare workflow isn't setup correctly.
|
|
35
17
|
if (NativeModulesProxy.ExpoUpdates?.isMissingRuntimeVersion) {
|
|
@@ -51,22 +33,13 @@ if (Constants.executionEnvironment === ExecutionEnvironment.StoreClient) {
|
|
|
51
33
|
}
|
|
52
34
|
// Having two if statements will enable terser to remove the entire block.
|
|
53
35
|
if (__DEV__) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
AppRegistry.setWrapperComponentProvider = (provider) => {
|
|
63
|
-
function PatchedProviderComponent(props) {
|
|
64
|
-
const ProviderComponent = provider();
|
|
65
|
-
return (React.createElement(DevAppContainer, null,
|
|
66
|
-
React.createElement(ProviderComponent, { ...props })));
|
|
67
|
-
}
|
|
68
|
-
originalSetWrapperComponentProvider(() => PatchedProviderComponent);
|
|
69
|
-
};
|
|
70
|
-
}
|
|
36
|
+
const proxiedNativeModules = createProxyForNativeModules(ReactNative.NativeModules);
|
|
37
|
+
Object.defineProperty(ReactNative, 'NativeModules', {
|
|
38
|
+
get() {
|
|
39
|
+
return proxiedNativeModules;
|
|
40
|
+
},
|
|
41
|
+
configurable: true,
|
|
42
|
+
enumerable: true,
|
|
43
|
+
});
|
|
71
44
|
}
|
|
72
45
|
//# sourceMappingURL=Expo.fx.js.map
|
package/build/Expo.fx.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expo.fx.js","sourceRoot":"","sources":["../src/Expo.fx.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,wEAAwE;AACxE,OAAO,0BAA0B,CAAC;AAClC,
|
|
1
|
+
{"version":3,"file":"Expo.fx.js","sourceRoot":"","sources":["../src/Expo.fx.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AACnC,wEAAwE;AACxE,OAAO,0BAA0B,CAAC;AAClC,mFAAmF;AACnF,OAAO,YAAY,CAAC;AAEpB,OAAO,SAAS,EAAE,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACjE,OAAO,WAAW,EAAE,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE,4FAA4F;AAC5F,IAAI,UAAU,CAAC,6BAA6B,EAAE;IAC5C,UAAU,CAAC,6BAA6B,CAAC,YAAY,EAAE,IAAI,CAAC,iBAAiB,CAAC,CAAC;CAChF;AAED,kDAAkD;AAClD,IAAI,kBAAkB,CAAC,WAAW,EAAE,uBAAuB,EAAE;IAC3D,MAAM,OAAO,GACX,+EAA+E;QAC/E,0DAA0D;QAC1D,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,EAAE,qBAAqB,EAAE,CAAC;QACtE,yCAAyC,CAAC;IAC5C,IAAI,OAAO,EAAE;QACX,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACvB;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;KAC1B;CACF;AAED,IAAI,SAAS,CAAC,oBAAoB,KAAK,oBAAoB,CAAC,WAAW,EAAE;IACvE,wFAAwF;IACxF,MAAM,aAAa,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC;IACpD,UAAU,CAAC,gBAAgB,CAAC,kBAAkB,CAAC,aAAa,CAAC,CAAC,CAAC;CAChE;AAED,0EAA0E;AAC1E,IAAI,OAAO,EAAE;IACX,MAAM,oBAAoB,GAAG,2BAA2B,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IACpF,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,eAAe,EAAE;QAClD,GAAG;YACD,OAAO,oBAAoB,CAAC;QAC9B,CAAC;QACD,YAAY,EAAE,IAAI;QAClB,UAAU,EAAE,IAAI;KACjB,CAAC,CAAC;CACJ","sourcesContent":["import './environment/validate.fx';\n// load remote logging for compatibility with custom development clients\nimport './environment/logging.fx';\n// load expo-asset immediately to set a custom `source` transformer in React Native\nimport 'expo-asset';\n\nimport Constants, { ExecutionEnvironment } from 'expo-constants';\nimport * as Font from 'expo-font';\nimport { NativeModulesProxy, Platform } from 'expo-modules-core';\nimport ReactNative, { StyleSheet } from 'react-native';\n\nimport { createErrorHandler } from './errors/ExpoErrorManager';\nimport { createProxyForNativeModules } from './proxies/NativeModules';\n\n// If expo-font is installed and the style preprocessor is available, use it to parse fonts.\nif (StyleSheet.setStyleAttributePreprocessor) {\n StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);\n}\n\n// Asserts if bare workflow isn't setup correctly.\nif (NativeModulesProxy.ExpoUpdates?.isMissingRuntimeVersion) {\n const message =\n 'expo-updates is installed but there is no runtime or SDK version configured. ' +\n \"You'll need to configure one of these two properties in \" +\n Platform.select({ ios: 'Expo.plist', android: 'AndroidManifest.xml' }) +\n ' before OTA updates will work properly.';\n if (__DEV__) {\n console.warn(message);\n } else {\n throw new Error(message);\n }\n}\n\nif (Constants.executionEnvironment === ExecutionEnvironment.StoreClient) {\n // set up some improvements to commonly logged error messages stemming from react-native\n const globalHandler = ErrorUtils.getGlobalHandler();\n ErrorUtils.setGlobalHandler(createErrorHandler(globalHandler));\n}\n\n// Having two if statements will enable terser to remove the entire block.\nif (__DEV__) {\n const proxiedNativeModules = createProxyForNativeModules(ReactNative.NativeModules);\n Object.defineProperty(ReactNative, 'NativeModules', {\n get() {\n return proxiedNativeModules;\n },\n configurable: true,\n enumerable: true,\n });\n}\n"]}
|
package/build/Expo.fx.web.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expo.fx.web.d.ts","sourceRoot":"","sources":["../src/Expo.fx.web.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Expo.fx.web.d.ts","sourceRoot":"","sources":["../src/Expo.fx.web.tsx"],"names":[],"mappings":""}
|
package/build/Expo.fx.web.js
CHANGED
|
@@ -1,37 +1,16 @@
|
|
|
1
|
-
import './environment/react-native-logs.fx';
|
|
2
|
-
import { Platform } from 'expo-modules-core';
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { AppRegistry } from 'react-native';
|
|
5
|
-
import DevAppContainer from './environment/DevAppContainer';
|
|
6
1
|
// When users dangerously import a file inside of react-native, it breaks the web alias.
|
|
7
2
|
// This is one of the most common, and cryptic web errors that users encounter.
|
|
8
3
|
// This conditional side-effect provides a more helpful error message for debugging.
|
|
4
|
+
// Use a wrapper `__DEV__` to remove this entire block in production.
|
|
9
5
|
if (__DEV__) {
|
|
10
|
-
// Use a wrapper `__DEV__` to remove this entire block in production.
|
|
11
6
|
if (
|
|
12
|
-
//
|
|
13
|
-
|
|
14
|
-
// Skip mocking if someone is shimming this value out.
|
|
15
|
-
!('__fbBatchedBridgeConfig' in global)) {
|
|
7
|
+
// Skip mocking if someone is shimming this value out.
|
|
8
|
+
!('__fbBatchedBridgeConfig' in global)) {
|
|
16
9
|
Object.defineProperty(global, '__fbBatchedBridgeConfig', {
|
|
17
10
|
get() {
|
|
18
11
|
throw new Error("Your web project is importing a module from 'react-native' instead of 'react-native-web'. Learn more: https://expo.fyi/fb-batched-bridge-config-web");
|
|
19
12
|
},
|
|
20
13
|
});
|
|
21
14
|
}
|
|
22
|
-
// add the dev app container wrapper component to web
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
AppRegistry.setWrapperComponentProvider(() => DevAppContainer);
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
const originalSetWrapperComponentProvider = AppRegistry.setWrapperComponentProvider;
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
AppRegistry.setWrapperComponentProvider = (provider) => {
|
|
29
|
-
function PatchedProviderComponent(props) {
|
|
30
|
-
const ProviderComponent = provider();
|
|
31
|
-
return (React.createElement(DevAppContainer, null,
|
|
32
|
-
React.createElement(ProviderComponent, { ...props })));
|
|
33
|
-
}
|
|
34
|
-
originalSetWrapperComponentProvider(() => PatchedProviderComponent);
|
|
35
|
-
};
|
|
36
15
|
}
|
|
37
16
|
//# sourceMappingURL=Expo.fx.web.js.map
|
package/build/Expo.fx.web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expo.fx.web.js","sourceRoot":"","sources":["../src/Expo.fx.web.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"Expo.fx.web.js","sourceRoot":"","sources":["../src/Expo.fx.web.tsx"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,+EAA+E;AAC/E,oFAAoF;AACpF,qEAAqE;AACrE,IAAI,OAAO,EAAE;IACX;IACE,sDAAsD;IACtD,CAAC,CAAC,yBAAyB,IAAI,MAAM,CAAC,EACtC;QACA,MAAM,CAAC,cAAc,CAAC,MAAM,EAAE,yBAAyB,EAAE;YACvD,GAAG;gBACD,MAAM,IAAI,KAAK,CACb,qJAAqJ,CACtJ,CAAC;YACJ,CAAC;SACF,CAAC,CAAC;KACJ;CACF","sourcesContent":["// When users dangerously import a file inside of react-native, it breaks the web alias.\n// This is one of the most common, and cryptic web errors that users encounter.\n// This conditional side-effect provides a more helpful error message for debugging.\n// Use a wrapper `__DEV__` to remove this entire block in production.\nif (__DEV__) {\n if (\n // Skip mocking if someone is shimming this value out.\n !('__fbBatchedBridgeConfig' in global)\n ) {\n Object.defineProperty(global, '__fbBatchedBridgeConfig', {\n get() {\n throw new Error(\n \"Your web project is importing a module from 'react-native' instead of 'react-native-web'. Learn more: https://expo.fyi/fb-batched-bridge-config-web\"\n );\n },\n });\n }\n}\n"]}
|
package/build/Expo.js
CHANGED
|
@@ -2,5 +2,6 @@ import './Expo.fx';
|
|
|
2
2
|
import * as Logs from './logs/Logs';
|
|
3
3
|
export { Logs };
|
|
4
4
|
export { disableErrorHandling } from './errors/ExpoErrorManager';
|
|
5
|
+
export { getNativeModuleIfExists } from './proxies/NativeModules';
|
|
5
6
|
export { default as registerRootComponent } from './launch/registerRootComponent';
|
|
6
7
|
//# sourceMappingURL=Expo.js.map
|
package/build/Expo.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Expo.js","sourceRoot":"","sources":["../src/Expo.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAC;AAEnB,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["import './Expo.fx';\n\nimport * as Logs from './logs/Logs';\n\nexport { Logs };\nexport { disableErrorHandling } from './errors/ExpoErrorManager';\nexport { default as registerRootComponent } from './launch/registerRootComponent';\n"]}
|
|
1
|
+
{"version":3,"file":"Expo.js","sourceRoot":"","sources":["../src/Expo.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,CAAC;AAEnB,OAAO,KAAK,IAAI,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC","sourcesContent":["import './Expo.fx';\n\nimport * as Logs from './logs/Logs';\n\nexport { Logs };\nexport { disableErrorHandling } from './errors/ExpoErrorManager';\nexport { getNativeModuleIfExists } from './proxies/NativeModules';\nexport { default as registerRootComponent } from './launch/registerRootComponent';\n"]}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import 'expo/build/Expo.fx';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
|
|
3
|
+
declare type InitialProps = {
|
|
4
|
+
exp: {
|
|
5
|
+
notification?: any;
|
|
6
|
+
manifestString?: string;
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
shell?: boolean;
|
|
10
|
+
shellManifestUrl?: string;
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
4
13
|
export default function registerRootComponent<P extends InitialProps>(component: React.ComponentType<P>): void;
|
|
14
|
+
export {};
|
|
5
15
|
//# sourceMappingURL=registerRootComponent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRootComponent.d.ts","sourceRoot":"","sources":["../../src/launch/registerRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"registerRootComponent.d.ts","sourceRoot":"","sources":["../../src/launch/registerRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,aAAK,YAAY,GAAG;IAClB,GAAG,EAAE;QACH,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAAC,CAAC,SAAS,YAAY,EAClE,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GAChC,IAAI,CAYN"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import 'expo/build/Expo.fx';
|
|
2
2
|
import { AppRegistry, Platform } from 'react-native';
|
|
3
|
-
import withExpoRoot from './withExpoRoot';
|
|
4
3
|
export default function registerRootComponent(component) {
|
|
5
|
-
|
|
4
|
+
if (process.env.NODE_ENV === 'production') {
|
|
5
|
+
AppRegistry.registerComponent('main', () => component);
|
|
6
|
+
}
|
|
7
|
+
else {
|
|
8
|
+
const { withDevTools } = require('./withDevTools');
|
|
9
|
+
AppRegistry.registerComponent('main', () => withDevTools(component));
|
|
10
|
+
}
|
|
6
11
|
if (Platform.OS === 'web') {
|
|
7
12
|
const rootTag = document.getElementById('root') ?? document.getElementById('main');
|
|
8
13
|
AppRegistry.runApplication('main', { rootTag });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerRootComponent.js","sourceRoot":"","sources":["../../src/launch/registerRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"registerRootComponent.js","sourceRoot":"","sources":["../../src/launch/registerRootComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAG5B,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAarD,MAAM,CAAC,OAAO,UAAU,qBAAqB,CAC3C,SAAiC;IAEjC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;QACzC,WAAW,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;KACxD;SAAM;QACL,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,gBAAgB,CAAoC,CAAC;QACtF,WAAW,CAAC,iBAAiB,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;KACtE;IAED,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;QACzB,MAAM,OAAO,GAAG,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QACnF,WAAW,CAAC,cAAc,CAAC,MAAM,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;KACjD;AACH,CAAC","sourcesContent":["import 'expo/build/Expo.fx';\n\nimport * as React from 'react';\nimport { AppRegistry, Platform } from 'react-native';\n\ntype InitialProps = {\n exp: {\n notification?: any;\n manifestString?: string;\n [key: string]: any;\n };\n shell?: boolean;\n shellManifestUrl?: string;\n [key: string]: any;\n};\n\nexport default function registerRootComponent<P extends InitialProps>(\n component: React.ComponentType<P>\n): void {\n if (process.env.NODE_ENV === 'production') {\n AppRegistry.registerComponent('main', () => component);\n } else {\n const { withDevTools } = require('./withDevTools') as typeof import('./withDevTools');\n AppRegistry.registerComponent('main', () => withDevTools(component));\n }\n\n if (Platform.OS === 'web') {\n const rootTag = document.getElementById('root') ?? document.getElementById('main');\n AppRegistry.runApplication('main', { rootTag });\n }\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Append the Expo Fast Refresh view and optionally
|
|
4
|
+
* keep the screen awake if `expo-keep-awake` is installed.
|
|
5
|
+
*/
|
|
6
|
+
export declare function withDevTools<TComponent extends React.ComponentType<any>>(AppRootComponent: TComponent): React.ComponentType<React.ComponentProps<TComponent>>;
|
|
7
|
+
//# sourceMappingURL=withDevTools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDevTools.d.ts","sourceRoot":"","sources":["../../src/launch/withDevTools.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B;;;GAGG;AACH,wBAAgB,YAAY,CAAC,UAAU,SAAS,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,EACtE,gBAAgB,EAAE,UAAU,GAC3B,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAwCvD"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import Constants, { ExecutionEnvironment } from 'expo-constants';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { Platform } from 'react-native';
|
|
4
|
+
import DevLoadingView from '../environment/DevLoadingView';
|
|
5
|
+
/**
|
|
6
|
+
* Append the Expo Fast Refresh view and optionally
|
|
7
|
+
* keep the screen awake if `expo-keep-awake` is installed.
|
|
8
|
+
*/
|
|
9
|
+
export function withDevTools(AppRootComponent) {
|
|
10
|
+
// This hook can be optionally imported because __DEV__ never changes during runtime.
|
|
11
|
+
// Using __DEV__ like this enables tree shaking to remove the hook in production.
|
|
12
|
+
const useOptionalKeepAwake = (() => {
|
|
13
|
+
if (Platform.OS !== 'web') {
|
|
14
|
+
try {
|
|
15
|
+
// Optionally import expo-keep-awake
|
|
16
|
+
const { useKeepAwake, ExpoKeepAwakeTag } = require('expo-keep-awake');
|
|
17
|
+
return () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });
|
|
18
|
+
}
|
|
19
|
+
catch { }
|
|
20
|
+
}
|
|
21
|
+
return () => { };
|
|
22
|
+
})();
|
|
23
|
+
const shouldUseExpoFastRefreshView = Platform.select({
|
|
24
|
+
web: true,
|
|
25
|
+
ios: Constants.executionEnvironment !== ExecutionEnvironment.Bare,
|
|
26
|
+
default: false,
|
|
27
|
+
});
|
|
28
|
+
function WithDevTools(props) {
|
|
29
|
+
useOptionalKeepAwake();
|
|
30
|
+
if (shouldUseExpoFastRefreshView) {
|
|
31
|
+
return (React.createElement(React.Fragment, null,
|
|
32
|
+
React.createElement(AppRootComponent, { ...props }),
|
|
33
|
+
React.createElement(DevLoadingView, null)));
|
|
34
|
+
}
|
|
35
|
+
return React.createElement(AppRootComponent, { ...props });
|
|
36
|
+
}
|
|
37
|
+
const name = AppRootComponent.displayName || AppRootComponent.name || 'Anonymous';
|
|
38
|
+
WithDevTools.displayName = `withDevTools(${name})`;
|
|
39
|
+
return WithDevTools;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=withDevTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDevTools.js","sourceRoot":"","sources":["../../src/launch/withDevTools.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAExC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D;;;GAGG;AACH,MAAM,UAAU,YAAY,CAC1B,gBAA4B;IAE5B,qFAAqF;IACrF,iFAAiF;IACjF,MAAM,oBAAoB,GAA2B,CAAC,GAAG,EAAE;QACzD,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;YACzB,IAAI;gBACF,oCAAoC;gBACpC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;gBACtE,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,CAAC,CAAC;aACnF;YAAC,MAAM,GAAE;SACX;QAED,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;IAClB,CAAC,CAAC,EAAE,CAAC;IAEL,MAAM,4BAA4B,GAAG,QAAQ,CAAC,MAAM,CAAC;QACnD,GAAG,EAAE,IAAI;QACT,GAAG,EAAE,SAAS,CAAC,oBAAoB,KAAK,oBAAoB,CAAC,IAAI;QACjE,OAAO,EAAE,KAAK;KACf,CAAC,CAAC;IAEH,SAAS,YAAY,CAAC,KAAuC;QAC3D,oBAAoB,EAAE,CAAC;QAEvB,IAAI,4BAA4B,EAAE;YAChC,OAAO,CACL;gBACE,oBAAC,gBAAgB,OAAK,KAAK,GAAI;gBAC/B,oBAAC,cAAc,OAAG,CACjB,CACJ,CAAC;SACH;QAED,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAC;IACzC,CAAC;IAED,MAAM,IAAI,GAAG,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;IAClF,YAAY,CAAC,WAAW,GAAG,gBAAgB,IAAI,GAAG,CAAC;IAEnD,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["import Constants, { ExecutionEnvironment } from 'expo-constants';\nimport * as React from 'react';\nimport { Platform } from 'react-native';\n\nimport DevLoadingView from '../environment/DevLoadingView';\n\n/**\n * Append the Expo Fast Refresh view and optionally\n * keep the screen awake if `expo-keep-awake` is installed.\n */\nexport function withDevTools<TComponent extends React.ComponentType<any>>(\n AppRootComponent: TComponent\n): React.ComponentType<React.ComponentProps<TComponent>> {\n // This hook can be optionally imported because __DEV__ never changes during runtime.\n // Using __DEV__ like this enables tree shaking to remove the hook in production.\n const useOptionalKeepAwake: (tag?: string) => void = (() => {\n if (Platform.OS !== 'web') {\n try {\n // Optionally import expo-keep-awake\n const { useKeepAwake, ExpoKeepAwakeTag } = require('expo-keep-awake');\n return () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });\n } catch {}\n }\n\n return () => {};\n })();\n\n const shouldUseExpoFastRefreshView = Platform.select({\n web: true,\n ios: Constants.executionEnvironment !== ExecutionEnvironment.Bare,\n default: false,\n });\n\n function WithDevTools(props: React.ComponentProps<TComponent>) {\n useOptionalKeepAwake();\n\n if (shouldUseExpoFastRefreshView) {\n return (\n <>\n <AppRootComponent {...props} />\n <DevLoadingView />\n </>\n );\n }\n\n return <AppRootComponent {...props} />;\n }\n\n const name = AppRootComponent.displayName || AppRootComponent.name || 'Anonymous';\n WithDevTools.displayName = `withDevTools(${name})`;\n\n return WithDevTools;\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare function createProxyForNativeModules(NativeModules: any): any;
|
|
2
|
+
/**
|
|
3
|
+
* Disable the error thrown when trying to access a native module that doesn't exist in the host
|
|
4
|
+
* runtime. If a module name or array of module names is provided, this method disables the error
|
|
5
|
+
* for only those modules, erasing a previous setting if one exists. If no parameter is provided,
|
|
6
|
+
* this method disables the error for all modules.
|
|
7
|
+
*
|
|
8
|
+
* @param moduleNames Name of module or modules for which to disable the missing native module
|
|
9
|
+
* error. If this parameter is omitted, the error will be disabled globally.
|
|
10
|
+
*/
|
|
11
|
+
export declare function disableMissingNativeModuleErrors(moduleNames?: string[] | string): void;
|
|
12
|
+
/**
|
|
13
|
+
* Access a native module without throwing an error if it doesn't exist.
|
|
14
|
+
*
|
|
15
|
+
* @param moduleName Name of module to access
|
|
16
|
+
* @returns Corresponding native module object, or null if it doesn't exist
|
|
17
|
+
*/
|
|
18
|
+
export declare function getNativeModuleIfExists(moduleName: string): any;
|
|
19
|
+
//# sourceMappingURL=NativeModules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeModules.d.ts","sourceRoot":"","sources":["../../src/proxies/NativeModules.ts"],"names":[],"mappings":"AA0DA,wBAAgB,2BAA2B,CAAC,aAAa,EAAE,GAAG,OA+B7D;AAED;;;;;;;;GAQG;AACH,wBAAgB,gCAAgC,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,QAQ/E;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,UAAU,EAAE,MAAM,GAAG,GAAG,CAE/D"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { ExecutionEnvironment } from 'expo-constants';
|
|
2
|
+
import { NativeModules } from 'react-native';
|
|
3
|
+
const originalNativeModules = NativeModules;
|
|
4
|
+
const PROPS_TO_IGNORE = new Set([
|
|
5
|
+
/**
|
|
6
|
+
* We don't want to throw when the expo or expo-modules-core packages try to access any of these
|
|
7
|
+
* modules, since they have built-in fallbacks.
|
|
8
|
+
*/
|
|
9
|
+
'DevLoadingView',
|
|
10
|
+
'EXDevLauncher',
|
|
11
|
+
'EXReactNativeEventEmitter',
|
|
12
|
+
'NativeUnimoduleProxy',
|
|
13
|
+
/**
|
|
14
|
+
* Other modules that are accessed via packages in the Expo SDK but have built-in fallbacks
|
|
15
|
+
*/
|
|
16
|
+
'ExpoImageModule',
|
|
17
|
+
'ExpoRandom',
|
|
18
|
+
'PlatformLocalStorage',
|
|
19
|
+
'RNC_AsyncSQLiteDBStorage',
|
|
20
|
+
'RNCAsyncStorage',
|
|
21
|
+
'RNGetRandomValues',
|
|
22
|
+
'RNVectorIconsManager',
|
|
23
|
+
'RNVectorIconsModule',
|
|
24
|
+
// False alarm from lottie where it uses react-native-safe-module to detect corresponding native module, but it doesn't exist in lottie.
|
|
25
|
+
'LottieAnimationViewManager',
|
|
26
|
+
'LottieAnimationView',
|
|
27
|
+
/**
|
|
28
|
+
* Other methods that can be called on the NativeModules object that we should ignore. The
|
|
29
|
+
* underlying NativeModules object is sometimes a proxy itself so may not have these methods
|
|
30
|
+
* defined.
|
|
31
|
+
*/
|
|
32
|
+
'hasOwnProperty',
|
|
33
|
+
'isPrototypeOf',
|
|
34
|
+
'propertyIsEnumerable',
|
|
35
|
+
'toJSON',
|
|
36
|
+
'toLocaleString',
|
|
37
|
+
'toString',
|
|
38
|
+
'valueOf',
|
|
39
|
+
'$$typeof',
|
|
40
|
+
]);
|
|
41
|
+
const alreadyErroredModules = new Set();
|
|
42
|
+
let additionalModulesToIgnore = new Set();
|
|
43
|
+
let enabled = true;
|
|
44
|
+
function createErrorMessageForStoreClient(moduleName) {
|
|
45
|
+
return `Your JavaScript code tried to access a native module, ${moduleName}, that isn't supported in Expo Go.
|
|
46
|
+
To continue development with ${moduleName}, you need to create a development build of your app. See https://expo.fyi/missing-native-module for more info, including how to disable these errors.`;
|
|
47
|
+
}
|
|
48
|
+
function createErrorMessageForDevelopmentBuild(moduleName) {
|
|
49
|
+
return `Your JavaScript code tried to access a native module, ${moduleName}, that doesn't exist in this development build.
|
|
50
|
+
Make sure you are using the newest available development build of this app and running a compatible version of your JavaScript code. If you've installed a new library recently, you may need to make a new development build.
|
|
51
|
+
See https://expo.fyi/missing-native-module for more info, including how to disable these errors.`;
|
|
52
|
+
}
|
|
53
|
+
export function createProxyForNativeModules(NativeModules) {
|
|
54
|
+
if (!__DEV__) {
|
|
55
|
+
return NativeModules;
|
|
56
|
+
}
|
|
57
|
+
return new Proxy(NativeModules, {
|
|
58
|
+
get(target, prop, receiver) {
|
|
59
|
+
const value = Reflect.get(target, prop, receiver);
|
|
60
|
+
if (enabled &&
|
|
61
|
+
typeof prop !== 'symbol' &&
|
|
62
|
+
(value === null || value === undefined) &&
|
|
63
|
+
!PROPS_TO_IGNORE.has(prop) &&
|
|
64
|
+
!additionalModulesToIgnore.has(prop) &&
|
|
65
|
+
!alreadyErroredModules.has(prop)) {
|
|
66
|
+
alreadyErroredModules.add(prop);
|
|
67
|
+
const isRunningInStoreClient = global.expo?.modules?.NativeModulesProxy?.modulesConstants.ExponentConstants
|
|
68
|
+
?.executionEnvironment === ExecutionEnvironment.StoreClient ||
|
|
69
|
+
target.NativeUnimoduleProxy?.modulesConstants.ExponentConstants?.executionEnvironment ===
|
|
70
|
+
ExecutionEnvironment.StoreClient;
|
|
71
|
+
if (isRunningInStoreClient) {
|
|
72
|
+
throw new Error(createErrorMessageForStoreClient(prop));
|
|
73
|
+
}
|
|
74
|
+
else if (target.EXDevLauncher) {
|
|
75
|
+
throw new Error(createErrorMessageForDevelopmentBuild(prop));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return value;
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Disable the error thrown when trying to access a native module that doesn't exist in the host
|
|
84
|
+
* runtime. If a module name or array of module names is provided, this method disables the error
|
|
85
|
+
* for only those modules, erasing a previous setting if one exists. If no parameter is provided,
|
|
86
|
+
* this method disables the error for all modules.
|
|
87
|
+
*
|
|
88
|
+
* @param moduleNames Name of module or modules for which to disable the missing native module
|
|
89
|
+
* error. If this parameter is omitted, the error will be disabled globally.
|
|
90
|
+
*/
|
|
91
|
+
export function disableMissingNativeModuleErrors(moduleNames) {
|
|
92
|
+
if (moduleNames) {
|
|
93
|
+
additionalModulesToIgnore =
|
|
94
|
+
typeof moduleNames === 'string' ? new Set([moduleNames]) : new Set(moduleNames);
|
|
95
|
+
enabled = true;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
enabled = false;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Access a native module without throwing an error if it doesn't exist.
|
|
103
|
+
*
|
|
104
|
+
* @param moduleName Name of module to access
|
|
105
|
+
* @returns Corresponding native module object, or null if it doesn't exist
|
|
106
|
+
*/
|
|
107
|
+
export function getNativeModuleIfExists(moduleName) {
|
|
108
|
+
return originalNativeModules[moduleName];
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=NativeModules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NativeModules.js","sourceRoot":"","sources":["../../src/proxies/NativeModules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAE7C,MAAM,qBAAqB,GAAG,aAAa,CAAC;AAE5C,MAAM,eAAe,GAAgB,IAAI,GAAG,CAAC;IAC3C;;;OAGG;IACH,gBAAgB;IAChB,eAAe;IACf,2BAA2B;IAC3B,sBAAsB;IACtB;;OAEG;IACH,iBAAiB;IACjB,YAAY;IACZ,sBAAsB;IACtB,0BAA0B;IAC1B,iBAAiB;IACjB,mBAAmB;IACnB,sBAAsB;IACtB,qBAAqB;IACrB,wIAAwI;IACxI,4BAA4B;IAC5B,qBAAqB;IACrB;;;;OAIG;IACH,gBAAgB;IAChB,eAAe;IACf,sBAAsB;IACtB,QAAQ;IACR,gBAAgB;IAChB,UAAU;IACV,SAAS;IACT,UAAU;CACX,CAAC,CAAC;AACH,MAAM,qBAAqB,GAAgB,IAAI,GAAG,EAAE,CAAC;AAErD,IAAI,yBAAyB,GAAgB,IAAI,GAAG,EAAE,CAAC;AACvD,IAAI,OAAO,GAAG,IAAI,CAAC;AAEnB,SAAS,gCAAgC,CAAC,UAAkB;IAC1D,OAAO,yDAAyD,UAAU;+BAC7C,UAAU,wJAAwJ,CAAC;AAClM,CAAC;AAED,SAAS,qCAAqC,CAAC,UAAkB;IAC/D,OAAO,yDAAyD,UAAU;;iGAEqB,CAAC;AAClG,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,aAAkB;IAC5D,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,aAAa,CAAC;KACtB;IACD,OAAO,IAAI,KAAK,CAAC,aAAa,EAAE;QAC9B,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ;YACxB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;YAClD,IACE,OAAO;gBACP,OAAO,IAAI,KAAK,QAAQ;gBACxB,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS,CAAC;gBACvC,CAAC,eAAe,CAAC,GAAG,CAAC,IAAI,CAAC;gBAC1B,CAAC,yBAAyB,CAAC,GAAG,CAAC,IAAI,CAAC;gBACpC,CAAC,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,EAChC;gBACA,qBAAqB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;gBAEhC,MAAM,sBAAsB,GAC1B,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,CAAC,iBAAiB;oBAC1E,EAAE,oBAAoB,KAAK,oBAAoB,CAAC,WAAW;oBAC7D,MAAM,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,iBAAiB,EAAE,oBAAoB;wBACnF,oBAAoB,CAAC,WAAW,CAAC;gBACrC,IAAI,sBAAsB,EAAE;oBAC1B,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,IAAI,CAAC,CAAC,CAAC;iBACzD;qBAAM,IAAI,MAAM,CAAC,aAAa,EAAE;oBAC/B,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,IAAI,CAAC,CAAC,CAAC;iBAC9D;aACF;YACD,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,gCAAgC,CAAC,WAA+B;IAC9E,IAAI,WAAW,EAAE;QACf,yBAAyB;YACvB,OAAO,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,WAAW,CAAC,CAAC;QAClF,OAAO,GAAG,IAAI,CAAC;KAChB;SAAM;QACL,OAAO,GAAG,KAAK,CAAC;KACjB;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CAAC,UAAkB;IACxD,OAAO,qBAAqB,CAAC,UAAU,CAAC,CAAC;AAC3C,CAAC","sourcesContent":["import { ExecutionEnvironment } from 'expo-constants';\nimport { NativeModules } from 'react-native';\n\nconst originalNativeModules = NativeModules;\n\nconst PROPS_TO_IGNORE: Set<string> = new Set([\n /**\n * We don't want to throw when the expo or expo-modules-core packages try to access any of these\n * modules, since they have built-in fallbacks.\n */\n 'DevLoadingView',\n 'EXDevLauncher',\n 'EXReactNativeEventEmitter',\n 'NativeUnimoduleProxy',\n /**\n * Other modules that are accessed via packages in the Expo SDK but have built-in fallbacks\n */\n 'ExpoImageModule',\n 'ExpoRandom',\n 'PlatformLocalStorage',\n 'RNC_AsyncSQLiteDBStorage',\n 'RNCAsyncStorage',\n 'RNGetRandomValues',\n 'RNVectorIconsManager',\n 'RNVectorIconsModule',\n // False alarm from lottie where it uses react-native-safe-module to detect corresponding native module, but it doesn't exist in lottie.\n 'LottieAnimationViewManager',\n 'LottieAnimationView',\n /**\n * Other methods that can be called on the NativeModules object that we should ignore. The\n * underlying NativeModules object is sometimes a proxy itself so may not have these methods\n * defined.\n */\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toJSON',\n 'toLocaleString',\n 'toString',\n 'valueOf',\n '$$typeof',\n]);\nconst alreadyErroredModules: Set<string> = new Set();\n\nlet additionalModulesToIgnore: Set<string> = new Set();\nlet enabled = true;\n\nfunction createErrorMessageForStoreClient(moduleName: string) {\n return `Your JavaScript code tried to access a native module, ${moduleName}, that isn't supported in Expo Go.\nTo continue development with ${moduleName}, you need to create a development build of your app. See https://expo.fyi/missing-native-module for more info, including how to disable these errors.`;\n}\n\nfunction createErrorMessageForDevelopmentBuild(moduleName: string) {\n return `Your JavaScript code tried to access a native module, ${moduleName}, that doesn't exist in this development build.\nMake sure you are using the newest available development build of this app and running a compatible version of your JavaScript code. If you've installed a new library recently, you may need to make a new development build.\nSee https://expo.fyi/missing-native-module for more info, including how to disable these errors.`;\n}\n\nexport function createProxyForNativeModules(NativeModules: any) {\n if (!__DEV__) {\n return NativeModules;\n }\n return new Proxy(NativeModules, {\n get(target, prop, receiver) {\n const value = Reflect.get(target, prop, receiver);\n if (\n enabled &&\n typeof prop !== 'symbol' &&\n (value === null || value === undefined) &&\n !PROPS_TO_IGNORE.has(prop) &&\n !additionalModulesToIgnore.has(prop) &&\n !alreadyErroredModules.has(prop)\n ) {\n alreadyErroredModules.add(prop);\n\n const isRunningInStoreClient =\n global.expo?.modules?.NativeModulesProxy?.modulesConstants.ExponentConstants\n ?.executionEnvironment === ExecutionEnvironment.StoreClient ||\n target.NativeUnimoduleProxy?.modulesConstants.ExponentConstants?.executionEnvironment ===\n ExecutionEnvironment.StoreClient;\n if (isRunningInStoreClient) {\n throw new Error(createErrorMessageForStoreClient(prop));\n } else if (target.EXDevLauncher) {\n throw new Error(createErrorMessageForDevelopmentBuild(prop));\n }\n }\n return value;\n },\n });\n}\n\n/**\n * Disable the error thrown when trying to access a native module that doesn't exist in the host\n * runtime. If a module name or array of module names is provided, this method disables the error\n * for only those modules, erasing a previous setting if one exists. If no parameter is provided,\n * this method disables the error for all modules.\n *\n * @param moduleNames Name of module or modules for which to disable the missing native module\n * error. If this parameter is omitted, the error will be disabled globally.\n */\nexport function disableMissingNativeModuleErrors(moduleNames?: string[] | string) {\n if (moduleNames) {\n additionalModulesToIgnore =\n typeof moduleNames === 'string' ? new Set([moduleNames]) : new Set(moduleNames);\n enabled = true;\n } else {\n enabled = false;\n }\n}\n\n/**\n * Access a native module without throwing an error if it doesn't exist.\n *\n * @param moduleName Name of module to access\n * @returns Corresponding native module object, or null if it doesn't exist\n */\nexport function getNativeModuleIfExists(moduleName: string): any {\n return originalNativeModules[moduleName];\n}\n"]}
|
|
@@ -1,111 +1,110 @@
|
|
|
1
1
|
{
|
|
2
2
|
"@expo/vector-icons": "^13.0.0",
|
|
3
3
|
"@react-native-async-storage/async-storage": "~1.17.3",
|
|
4
|
-
"@react-native-community/datetimepicker": "6.2
|
|
5
|
-
"@react-native-masked-view/masked-view": "0.2.
|
|
6
|
-
"@react-native-community/netinfo": "9.3.
|
|
7
|
-
"@react-native-community/slider": "4.2.
|
|
4
|
+
"@react-native-community/datetimepicker": "6.5.2",
|
|
5
|
+
"@react-native-masked-view/masked-view": "0.2.8",
|
|
6
|
+
"@react-native-community/netinfo": "9.3.5",
|
|
7
|
+
"@react-native-community/slider": "4.2.4",
|
|
8
8
|
"@react-native-community/viewpager": "5.0.11",
|
|
9
9
|
"@react-native-firebase/app": "~15.4.0",
|
|
10
|
-
"@react-native-picker/picker": "2.4.
|
|
10
|
+
"@react-native-picker/picker": "2.4.8",
|
|
11
11
|
"@react-native-segmented-control/segmented-control": "2.4.0",
|
|
12
|
-
"@stripe/stripe-react-native": "0.
|
|
12
|
+
"@stripe/stripe-react-native": "0.19.0",
|
|
13
13
|
"expo-analytics-amplitude": "~11.3.0",
|
|
14
14
|
"expo-app-auth": "~11.1.0",
|
|
15
15
|
"expo-app-loader-provider": "~8.0.0",
|
|
16
|
-
"expo-app-loading": "~2.1.
|
|
17
|
-
"expo-apple-authentication": "~
|
|
18
|
-
"expo-application": "~
|
|
19
|
-
"expo-asset": "~8.6.
|
|
20
|
-
"expo-auth-session": "~3.7.
|
|
21
|
-
"expo-av": "~
|
|
22
|
-
"expo-background-fetch": "~
|
|
23
|
-
"expo-barcode-scanner": "~
|
|
24
|
-
"expo-battery": "~
|
|
25
|
-
"expo-blur": "~
|
|
26
|
-
"expo-brightness": "~
|
|
27
|
-
"expo-build-properties": "~0.
|
|
28
|
-
"expo-calendar": "~
|
|
29
|
-
"expo-camera": "~
|
|
30
|
-
"expo-cellular": "~
|
|
31
|
-
"expo-checkbox": "~2.2.
|
|
32
|
-
"expo-clipboard": "~
|
|
33
|
-
"expo-constants": "~
|
|
34
|
-
"expo-contacts": "~
|
|
35
|
-
"expo-crypto": "~
|
|
16
|
+
"expo-app-loading": "~2.1.1",
|
|
17
|
+
"expo-apple-authentication": "~5.0.0",
|
|
18
|
+
"expo-application": "~5.0.0",
|
|
19
|
+
"expo-asset": "~8.6.2",
|
|
20
|
+
"expo-auth-session": "~3.7.2",
|
|
21
|
+
"expo-av": "~13.0.0",
|
|
22
|
+
"expo-background-fetch": "~11.0.0",
|
|
23
|
+
"expo-barcode-scanner": "~12.0.0",
|
|
24
|
+
"expo-battery": "~7.0.0",
|
|
25
|
+
"expo-blur": "~12.0.0",
|
|
26
|
+
"expo-brightness": "~11.0.0",
|
|
27
|
+
"expo-build-properties": "~0.4.0",
|
|
28
|
+
"expo-calendar": "~11.0.0",
|
|
29
|
+
"expo-camera": "~13.0.0",
|
|
30
|
+
"expo-cellular": "~5.0.0",
|
|
31
|
+
"expo-checkbox": "~2.2.1",
|
|
32
|
+
"expo-clipboard": "~4.0.0",
|
|
33
|
+
"expo-constants": "~14.0.0",
|
|
34
|
+
"expo-contacts": "~11.0.0",
|
|
35
|
+
"expo-crypto": "~12.0.0",
|
|
36
36
|
"expo-dev-client": "~1.3.1",
|
|
37
|
-
"expo-device": "~
|
|
38
|
-
"expo-document-picker": "~
|
|
39
|
-
"expo-error-recovery": "~
|
|
40
|
-
"expo-face-detector": "~
|
|
41
|
-
"expo-file-system": "~
|
|
42
|
-
"expo-firebase-analytics": "~
|
|
43
|
-
"expo-firebase-core": "~
|
|
44
|
-
"expo-firebase-recaptcha": "~2.3.
|
|
45
|
-
"expo-font": "~
|
|
46
|
-
"expo-gl": "~
|
|
47
|
-
"expo-gl-cpp": "~11.4.0",
|
|
37
|
+
"expo-device": "~5.0.0",
|
|
38
|
+
"expo-document-picker": "~11.0.0",
|
|
39
|
+
"expo-error-recovery": "~4.0.0",
|
|
40
|
+
"expo-face-detector": "~12.0.0",
|
|
41
|
+
"expo-file-system": "~15.1.0",
|
|
42
|
+
"expo-firebase-analytics": "~8.0.0",
|
|
43
|
+
"expo-firebase-core": "~6.0.0",
|
|
44
|
+
"expo-firebase-recaptcha": "~2.3.1",
|
|
45
|
+
"expo-font": "~11.0.0",
|
|
46
|
+
"expo-gl": "~12.0.0",
|
|
48
47
|
"expo-google-app-auth": "~8.3.0",
|
|
49
|
-
"expo-haptics": "~
|
|
50
|
-
"expo-image-loader": "~
|
|
51
|
-
"expo-image-manipulator": "~
|
|
52
|
-
"expo-image-picker": "~
|
|
53
|
-
"expo-in-app-purchases": "~
|
|
54
|
-
"expo-intent-launcher": "~10.3.
|
|
55
|
-
"expo-keep-awake": "~
|
|
56
|
-
"expo-linear-gradient": "~
|
|
57
|
-
"expo-linking": "~3.2.
|
|
58
|
-
"expo-local-authentication": "~
|
|
59
|
-
"expo-localization": "~
|
|
60
|
-
"expo-location": "~
|
|
61
|
-
"expo-mail-composer": "~
|
|
62
|
-
"expo-media-library": "~
|
|
63
|
-
"expo-module-template": "~10.7.
|
|
64
|
-
"expo-modules-core": "~0.
|
|
65
|
-
"expo-navigation-bar": "~
|
|
66
|
-
"expo-network": "~
|
|
67
|
-
"expo-notifications": "~0.
|
|
68
|
-
"expo-permissions": "~
|
|
69
|
-
"expo-print": "~
|
|
70
|
-
"expo-random": "~
|
|
71
|
-
"expo-screen-capture": "~
|
|
72
|
-
"expo-screen-orientation": "~
|
|
73
|
-
"expo-secure-store": "~
|
|
74
|
-
"expo-sensors": "~
|
|
75
|
-
"expo-sharing": "~
|
|
76
|
-
"expo-sms": "~
|
|
77
|
-
"expo-speech": "~
|
|
78
|
-
"expo-splash-screen": "~0.
|
|
79
|
-
"expo-sqlite": "~
|
|
80
|
-
"expo-status-bar": "~1.4.
|
|
81
|
-
"expo-store-review": "~
|
|
82
|
-
"expo-system-ui": "~
|
|
83
|
-
"expo-task-manager": "~
|
|
84
|
-
"expo-tracking-transparency": "~
|
|
85
|
-
"expo-updates": "~0.
|
|
86
|
-
"expo-video-thumbnails": "~
|
|
87
|
-
"expo-web-browser": "~
|
|
88
|
-
"lottie-react-native": "5.1.
|
|
89
|
-
"react": "18.
|
|
48
|
+
"expo-haptics": "~12.0.0",
|
|
49
|
+
"expo-image-loader": "~4.0.0",
|
|
50
|
+
"expo-image-manipulator": "~11.0.0",
|
|
51
|
+
"expo-image-picker": "~14.0.0",
|
|
52
|
+
"expo-in-app-purchases": "~14.0.0",
|
|
53
|
+
"expo-intent-launcher": "~10.3.1",
|
|
54
|
+
"expo-keep-awake": "~11.0.0",
|
|
55
|
+
"expo-linear-gradient": "~12.0.0",
|
|
56
|
+
"expo-linking": "~3.2.3",
|
|
57
|
+
"expo-local-authentication": "~13.0.0",
|
|
58
|
+
"expo-localization": "~14.0.0",
|
|
59
|
+
"expo-location": "~15.0.0",
|
|
60
|
+
"expo-mail-composer": "~12.0.0",
|
|
61
|
+
"expo-media-library": "~15.0.0",
|
|
62
|
+
"expo-module-template": "~10.7.4",
|
|
63
|
+
"expo-modules-core": "~0.13.0",
|
|
64
|
+
"expo-navigation-bar": "~2.0.0",
|
|
65
|
+
"expo-network": "~5.0.0",
|
|
66
|
+
"expo-notifications": "~0.17.0",
|
|
67
|
+
"expo-permissions": "~14.0.0",
|
|
68
|
+
"expo-print": "~12.0.0",
|
|
69
|
+
"expo-random": "~13.0.0",
|
|
70
|
+
"expo-screen-capture": "~5.0.0",
|
|
71
|
+
"expo-screen-orientation": "~5.0.0",
|
|
72
|
+
"expo-secure-store": "~12.0.0",
|
|
73
|
+
"expo-sensors": "~12.0.0",
|
|
74
|
+
"expo-sharing": "~11.0.0",
|
|
75
|
+
"expo-sms": "~11.0.0",
|
|
76
|
+
"expo-speech": "~11.0.0",
|
|
77
|
+
"expo-splash-screen": "~0.17.0",
|
|
78
|
+
"expo-sqlite": "~11.0.0",
|
|
79
|
+
"expo-status-bar": "~1.4.1",
|
|
80
|
+
"expo-store-review": "~6.0.0",
|
|
81
|
+
"expo-system-ui": "~2.0.0",
|
|
82
|
+
"expo-task-manager": "~11.0.0",
|
|
83
|
+
"expo-tracking-transparency": "~3.0.0",
|
|
84
|
+
"expo-updates": "~0.15.0",
|
|
85
|
+
"expo-video-thumbnails": "~7.0.0",
|
|
86
|
+
"expo-web-browser": "~12.0.0",
|
|
87
|
+
"lottie-react-native": "5.1.4",
|
|
88
|
+
"react": "18.1.0",
|
|
90
89
|
"react-dom": "18.0.0",
|
|
91
|
-
"react-native": "0.
|
|
92
|
-
"react-native-web": "~0.18.
|
|
90
|
+
"react-native": "0.70.3",
|
|
91
|
+
"react-native-web": "~0.18.9",
|
|
93
92
|
"react-native-branch": "^5.4.0",
|
|
94
|
-
"react-native-gesture-handler": "~2.
|
|
93
|
+
"react-native-gesture-handler": "~2.8.0",
|
|
95
94
|
"react-native-get-random-values": "~1.8.0",
|
|
96
|
-
"react-native-maps": "
|
|
97
|
-
"react-native-pager-view": "
|
|
98
|
-
"react-native-reanimated": "~2.
|
|
99
|
-
"react-native-
|
|
100
|
-
"react-native-
|
|
95
|
+
"react-native-maps": "1.3.2",
|
|
96
|
+
"react-native-pager-view": "6.0.1",
|
|
97
|
+
"react-native-reanimated": "~2.11.0",
|
|
98
|
+
"react-native-screens": "~3.18.0",
|
|
99
|
+
"react-native-safe-area-context": "4.4.1",
|
|
101
100
|
"react-native-shared-element": "0.8.4",
|
|
102
|
-
"react-native-svg": "
|
|
103
|
-
"react-native-view-shot": "3.
|
|
104
|
-
"react-native-webview": "11.23.
|
|
101
|
+
"react-native-svg": "13.4.0",
|
|
102
|
+
"react-native-view-shot": "3.4.0",
|
|
103
|
+
"react-native-webview": "11.23.1",
|
|
105
104
|
"sentry-expo": "~5.0.0",
|
|
106
|
-
"unimodules-app-loader": "~
|
|
105
|
+
"unimodules-app-loader": "~4.0.0",
|
|
107
106
|
"unimodules-image-loader-interface": "~6.1.0",
|
|
108
|
-
"@shopify/react-native-skia": "0.1.
|
|
109
|
-
"@shopify/flash-list": "1.1
|
|
107
|
+
"@shopify/react-native-skia": "0.1.155",
|
|
108
|
+
"@shopify/flash-list": "1.3.1",
|
|
110
109
|
"@sentry/react-native": "4.2.2"
|
|
111
110
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@expo/config-plugins';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('@expo/config-plugins');
|
package/config.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@expo/config';
|
package/config.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('@expo/config');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "47.0.0-beta.1",
|
|
4
4
|
"description": "The Expo SDK",
|
|
5
5
|
"main": "build/Expo.js",
|
|
6
6
|
"module": "build/Expo.js",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"bundledNativeModules.json",
|
|
25
25
|
"expo-module.config.json",
|
|
26
26
|
"metro-config.js",
|
|
27
|
+
"config.js",
|
|
28
|
+
"config.d.ts",
|
|
29
|
+
"config-plugins.js",
|
|
30
|
+
"config-plugins.d.ts",
|
|
27
31
|
"react-native.config.js",
|
|
28
32
|
"requiresExtraSetup.json",
|
|
29
33
|
"tsconfig.base.json"
|
|
@@ -55,18 +59,18 @@
|
|
|
55
59
|
"homepage": "https://github.com/expo/expo/tree/main/packages/expo",
|
|
56
60
|
"dependencies": {
|
|
57
61
|
"@babel/runtime": "^7.14.0",
|
|
58
|
-
"@expo/cli": "0.
|
|
62
|
+
"@expo/cli": "0.4.0",
|
|
59
63
|
"@expo/vector-icons": "^13.0.0",
|
|
60
|
-
"babel-preset-expo": "~9.2.
|
|
64
|
+
"babel-preset-expo": "~9.2.1",
|
|
61
65
|
"cross-spawn": "^6.0.5",
|
|
62
|
-
"expo-application": "~
|
|
63
|
-
"expo-asset": "~8.6.
|
|
64
|
-
"expo-constants": "~
|
|
65
|
-
"expo-file-system": "~
|
|
66
|
-
"expo-font": "~
|
|
67
|
-
"expo-keep-awake": "~
|
|
68
|
-
"expo-modules-autolinking": "0.
|
|
69
|
-
"expo-modules-core": "0.
|
|
66
|
+
"expo-application": "~5.0.0",
|
|
67
|
+
"expo-asset": "~8.6.2",
|
|
68
|
+
"expo-constants": "~14.0.0",
|
|
69
|
+
"expo-file-system": "~15.1.0",
|
|
70
|
+
"expo-font": "~11.0.0",
|
|
71
|
+
"expo-keep-awake": "~11.0.0",
|
|
72
|
+
"expo-modules-autolinking": "0.12.0",
|
|
73
|
+
"expo-modules-core": "0.13.0",
|
|
70
74
|
"fbemitter": "^3.0.0",
|
|
71
75
|
"getenv": "^1.0.0",
|
|
72
76
|
"invariant": "^2.2.4",
|
|
@@ -76,7 +80,7 @@
|
|
|
76
80
|
"uuid": "^3.4.0"
|
|
77
81
|
},
|
|
78
82
|
"optionalDependencies": {
|
|
79
|
-
"expo-error-recovery": "~
|
|
83
|
+
"expo-error-recovery": "~4.0.0"
|
|
80
84
|
},
|
|
81
85
|
"devDependencies": {
|
|
82
86
|
"@types/fbemitter": "^2.0.32",
|
|
@@ -85,10 +89,10 @@
|
|
|
85
89
|
"@types/react-native": "~0.69.1",
|
|
86
90
|
"@types/react-test-renderer": "^18.0.0",
|
|
87
91
|
"@types/uuid": "^3.4.7",
|
|
88
|
-
"expo-module-scripts": "^
|
|
89
|
-
"react": "18.
|
|
92
|
+
"expo-module-scripts": "^3.0.0",
|
|
93
|
+
"react": "18.1.0",
|
|
90
94
|
"react-dom": "18.0.0",
|
|
91
|
-
"react-native": "0.
|
|
95
|
+
"react-native": "0.70.3"
|
|
92
96
|
},
|
|
93
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "957cf0793ac316152e694cbe352953e07bffcb45"
|
|
94
98
|
}
|
|
@@ -31,6 +31,9 @@ if (!platform || !projectRoot) {
|
|
|
31
31
|
const entry = resolveEntryPoint(projectRoot, { platform });
|
|
32
32
|
|
|
33
33
|
if (entry) {
|
|
34
|
+
// Prevent any logs from the app.config.js
|
|
35
|
+
// from being used in the output of this command.
|
|
36
|
+
console.clear();
|
|
34
37
|
console.log(absolute ? path.resolve(entry) : path.relative(projectRoot, entry));
|
|
35
38
|
} else {
|
|
36
39
|
console.error(`Error: Could not find entry file for project at: ${projectRoot}`);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevAppContainer.d.ts","sourceRoot":"","sources":["../../src/environment/DevAppContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAAC;IAC1F,MAAM;CAQP"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import DevLoadingView from '../environment/DevLoadingView';
|
|
3
|
-
export default class DevAppContainer extends React.Component {
|
|
4
|
-
render() {
|
|
5
|
-
return (React.createElement(React.Fragment, null,
|
|
6
|
-
this.props.children,
|
|
7
|
-
React.createElement(DevLoadingView, null)));
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=DevAppContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DevAppContainer.js","sourceRoot":"","sources":["../../src/environment/DevAppContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,KAAK,CAAC,SAAyC;IAC1F,MAAM;QACJ,OAAO,CACL;YACG,IAAI,CAAC,KAAK,CAAC,QAAQ;YACpB,oBAAC,cAAc,OAAG,CACjB,CACJ,CAAC;IACJ,CAAC;CACF","sourcesContent":["import * as React from 'react';\n\nimport DevLoadingView from '../environment/DevLoadingView';\n\nexport default class DevAppContainer extends React.Component<{ children?: React.ReactNode }> {\n render() {\n return (\n <>\n {this.props.children}\n <DevLoadingView />\n </>\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-native-logs.fx.d.ts","sourceRoot":"","sources":["../../src/environment/react-native-logs.fx.ts"],"names":[],"mappings":""}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// AppRegistry transitively installs YellowBox as a side effect, which overrides various console
|
|
2
|
-
// methods that we need to set up before we override them
|
|
3
|
-
import { AppRegistry } from 'react-native';
|
|
4
|
-
AppRegistry; // eslint-disable-line no-unused-expressions
|
|
5
|
-
// NOTE(2018-10-29): temporarily filter out cyclic dependency warnings here since they are noisy and
|
|
6
|
-
// each warning symbolicates a stack trace, which is slow when there are many warnings
|
|
7
|
-
// NOTE(2019-05-27): temporarily filter out LottieAnimationView warnings triggered by
|
|
8
|
-
// unmaintained react-native-safe-module dependency.
|
|
9
|
-
const originalWarn = console.warn;
|
|
10
|
-
console.warn = function warn(...args) {
|
|
11
|
-
if (args.length > 0 &&
|
|
12
|
-
typeof args[0] === 'string' &&
|
|
13
|
-
(/^Require cycle: .*node_modules/.test(args[0]) ||
|
|
14
|
-
/Use UIManager\.getViewManagerConfig\('LottieAnimationView'\) instead\./.test(args[0]) ||
|
|
15
|
-
/ReactNative\.NativeModules\.LottieAnimationView\.getConstants/.test(args[0]))) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
originalWarn.apply(console, args);
|
|
19
|
-
};
|
|
20
|
-
const originalError = console.error;
|
|
21
|
-
console.error = function error(...args) {
|
|
22
|
-
if (args.length > 0 &&
|
|
23
|
-
typeof args[0] === 'string' &&
|
|
24
|
-
/^Warning: .* has been extracted/.test(args[0])) {
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
originalError.apply(console, args);
|
|
28
|
-
};
|
|
29
|
-
//# sourceMappingURL=react-native-logs.fx.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"react-native-logs.fx.js","sourceRoot":"","sources":["../../src/environment/react-native-logs.fx.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,yDAAyD;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,WAAW,CAAC,CAAC,4CAA4C;AAEzD,oGAAoG;AACpG,sFAAsF;AACtF,qFAAqF;AACrF,oDAAoD;AACpD,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;AAClC,OAAO,CAAC,IAAI,GAAG,SAAS,IAAI,CAAC,GAAG,IAAI;IAClC,IACE,IAAI,CAAC,MAAM,GAAG,CAAC;QACf,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,CAAC,gCAAgC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC7C,wEAAwE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YACtF,+DAA+D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,EAChF;QACA,OAAO;KACR;IACD,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACpC,CAAC,CAAC;AAEF,MAAM,aAAa,GAAG,OAAO,CAAC,KAAK,CAAC;AACpC,OAAO,CAAC,KAAK,GAAG,SAAS,KAAK,CAAC,GAAG,IAAI;IACpC,IACE,IAAI,CAAC,MAAM,GAAG,CAAC;QACf,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ;QAC3B,iCAAiC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAC/C;QACA,OAAO;KACR;IACD,aAAa,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;AACrC,CAAC,CAAC","sourcesContent":["// AppRegistry transitively installs YellowBox as a side effect, which overrides various console\n// methods that we need to set up before we override them\nimport { AppRegistry } from 'react-native';\n\nAppRegistry; // eslint-disable-line no-unused-expressions\n\n// NOTE(2018-10-29): temporarily filter out cyclic dependency warnings here since they are noisy and\n// each warning symbolicates a stack trace, which is slow when there are many warnings\n// NOTE(2019-05-27): temporarily filter out LottieAnimationView warnings triggered by\n// unmaintained react-native-safe-module dependency.\nconst originalWarn = console.warn;\nconsole.warn = function warn(...args) {\n if (\n args.length > 0 &&\n typeof args[0] === 'string' &&\n (/^Require cycle: .*node_modules/.test(args[0]) ||\n /Use UIManager\\.getViewManagerConfig\\('LottieAnimationView'\\) instead\\./.test(args[0]) ||\n /ReactNative\\.NativeModules\\.LottieAnimationView\\.getConstants/.test(args[0]))\n ) {\n return;\n }\n originalWarn.apply(console, args);\n};\n\nconst originalError = console.error;\nconsole.error = function error(...args) {\n if (\n args.length > 0 &&\n typeof args[0] === 'string' &&\n /^Warning: .* has been extracted/.test(args[0])\n ) {\n return;\n }\n originalError.apply(console, args);\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecoveryProps.d.ts","sourceRoot":"","sources":["../../src/launch/RecoveryProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,eAAO,MAAM,oBAAoB,yCAWhC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export const attachRecoveredProps = (props) => {
|
|
2
|
-
try {
|
|
3
|
-
// Optionally import expo-error-recovery
|
|
4
|
-
const { recoveredProps } = require('expo-error-recovery');
|
|
5
|
-
return {
|
|
6
|
-
...props,
|
|
7
|
-
exp: { ...props.exp, errorRecovery: recoveredProps },
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
catch { }
|
|
11
|
-
return props;
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=RecoveryProps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RecoveryProps.js","sourceRoot":"","sources":["../../src/launch/RecoveryProps.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAyB,KAAQ,EAAK,EAAE;IAC1E,IAAI;QACF,wCAAwC;QACxC,MAAM,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;QAC1D,OAAO;YACL,GAAG,KAAK;YACR,GAAG,EAAE,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,aAAa,EAAE,cAAc,EAAE;SACrD,CAAC;KACH;IAAC,MAAM,GAAE;IAEV,OAAO,KAAK,CAAC;AACf,CAAC,CAAC","sourcesContent":["import { InitialProps } from './withExpoRoot.types';\n\nexport const attachRecoveredProps = <P extends InitialProps>(props: P): P => {\n try {\n // Optionally import expo-error-recovery\n const { recoveredProps } = require('expo-error-recovery');\n return {\n ...props,\n exp: { ...props.exp, errorRecovery: recoveredProps },\n };\n } catch {}\n\n return props;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAcpD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,SAAS,YAAY,EACzD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACvC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAOxB"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { attachRecoveredProps } from './RecoveryProps';
|
|
3
|
-
// This hook can be optionally imported because __DEV__ never changes during runtime.
|
|
4
|
-
// Using __DEV__ like this enables tree shaking to remove the hook in production.
|
|
5
|
-
let useDevKeepAwake = () => { };
|
|
6
|
-
if (__DEV__) {
|
|
7
|
-
try {
|
|
8
|
-
// Optionally import expo-keep-awake
|
|
9
|
-
const { useKeepAwake, ExpoKeepAwakeTag } = require('expo-keep-awake');
|
|
10
|
-
useDevKeepAwake = () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });
|
|
11
|
-
}
|
|
12
|
-
catch { }
|
|
13
|
-
}
|
|
14
|
-
export default function withExpoRoot(AppRootComponent) {
|
|
15
|
-
return function ExpoRoot(props) {
|
|
16
|
-
useDevKeepAwake();
|
|
17
|
-
const combinedProps = attachRecoveredProps(props);
|
|
18
|
-
return React.createElement(AppRootComponent, { ...combinedProps });
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=withExpoRoot.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGvD,qFAAqF;AACrF,iFAAiF;AACjF,IAAI,eAAe,GAA2B,GAAG,EAAE,GAAE,CAAC,CAAC;AAEvD,IAAI,OAAO,EAAE;IACX,IAAI;QACF,oCAAoC;QACpC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;QACtE,eAAe,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,CAAC,CAAC;KAC9F;IAAC,MAAM,GAAE;CACX;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,gBAAwC;IAExC,OAAO,SAAS,QAAQ,CAAC,KAAQ;QAC/B,eAAe,EAAE,CAAC;QAElB,MAAM,aAAa,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;QAClD,OAAO,oBAAC,gBAAgB,OAAK,aAAa,GAAI,CAAC;IACjD,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import * as React from 'react';\n\nimport { attachRecoveredProps } from './RecoveryProps';\nimport { InitialProps } from './withExpoRoot.types';\n\n// This hook can be optionally imported because __DEV__ never changes during runtime.\n// Using __DEV__ like this enables tree shaking to remove the hook in production.\nlet useDevKeepAwake: (tag?: string) => void = () => {};\n\nif (__DEV__) {\n try {\n // Optionally import expo-keep-awake\n const { useKeepAwake, ExpoKeepAwakeTag } = require('expo-keep-awake');\n useDevKeepAwake = () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });\n } catch {}\n}\n\nexport default function withExpoRoot<P extends InitialProps>(\n AppRootComponent: React.ComponentType<P>\n): React.ComponentType<P> {\n return function ExpoRoot(props: P) {\n useDevKeepAwake();\n\n const combinedProps = attachRecoveredProps(props);\n return <AppRootComponent {...combinedProps} />;\n };\n}\n"]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare type InitialProps = {
|
|
2
|
-
exp: {
|
|
3
|
-
notification?: any;
|
|
4
|
-
errorRecovery?: any;
|
|
5
|
-
manifestString?: string;
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
shell?: boolean;
|
|
9
|
-
shellManifestUrl?: string;
|
|
10
|
-
[key: string]: any;
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=withExpoRoot.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.types.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.types.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACzB,GAAG,EAAE;QACH,YAAY,CAAC,EAAE,GAAG,CAAC;QACnB,aAAa,CAAC,EAAE,GAAG,CAAC;QACpB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KACpB,CAAC;IACF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.types.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.types.ts"],"names":[],"mappings":"","sourcesContent":["export type InitialProps = {\n exp: {\n notification?: any;\n errorRecovery?: any;\n manifestString?: string;\n [key: string]: any;\n };\n shell?: boolean;\n shellManifestUrl?: string;\n [key: string]: any;\n};\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.web.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAEpD,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,CAAC,SAAS,YAAY,EACzD,gBAAgB,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,GACvC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAOzB"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { attachRecoveredProps } from './RecoveryProps';
|
|
3
|
-
export default function withExpoRoot(AppRootComponent) {
|
|
4
|
-
return class ExpoRootComponent extends React.Component {
|
|
5
|
-
render() {
|
|
6
|
-
const combinedProps = attachRecoveredProps(this.props);
|
|
7
|
-
return React.createElement(AppRootComponent, { ...combinedProps });
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=withExpoRoot.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.web.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAGvD,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,gBAAwC;IAExC,OAAO,MAAM,iBAAkB,SAAQ,KAAK,CAAC,SAAY;QACvD,MAAM;YACJ,MAAM,aAAa,GAAG,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACvD,OAAO,oBAAC,gBAAgB,OAAK,aAAa,GAAI,CAAC;QACjD,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import * as React from 'react';\n\nimport { attachRecoveredProps } from './RecoveryProps';\nimport { InitialProps } from './withExpoRoot.types';\n\nexport default function withExpoRoot<P extends InitialProps>(\n AppRootComponent: React.ComponentType<P>\n): React.ComponentClass<P> {\n return class ExpoRootComponent extends React.Component<P> {\n render() {\n const combinedProps = attachRecoveredProps(this.props);\n return <AppRootComponent {...combinedProps} />;\n }\n };\n}\n"]}
|