expo 46.0.15 → 47.0.0-alpha.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 -14
- package/build/Expo.fx.js.map +1 -1
- package/build/Expo.fx.web.d.ts +1 -1
- package/build/Expo.fx.web.d.ts.map +1 -1
- package/build/Expo.fx.web.js +0 -1
- package/build/Expo.fx.web.js.map +1 -1
- package/build/Expo.js +1 -0
- package/build/Expo.js.map +1 -1
- package/build/environment/DevAppContainer.d.ts +1 -5
- package/build/environment/DevAppContainer.d.ts.map +1 -1
- package/build/environment/DevAppContainer.js +4 -6
- package/build/environment/DevAppContainer.js.map +1 -1
- package/build/launch/withExpoRoot.d.ts.map +1 -1
- package/build/launch/withExpoRoot.js +1 -3
- package/build/launch/withExpoRoot.js.map +1 -1
- package/build/launch/withExpoRoot.types.d.ts +0 -1
- package/build/launch/withExpoRoot.types.d.ts.map +1 -1
- package/build/launch/withExpoRoot.types.js.map +1 -1
- package/build/launch/withExpoRoot.web.d.ts.map +1 -1
- package/build/launch/withExpoRoot.web.js +1 -3
- package/build/launch/withExpoRoot.web.js.map +1 -1
- package/build/proxies/NativeModules.d.ts +19 -0
- package/build/proxies/NativeModules.d.ts.map +1 -0
- package/build/proxies/NativeModules.js +107 -0
- package/build/proxies/NativeModules.js.map +1 -0
- package/bundledNativeModules.json +22 -23
- 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 +17 -13
- package/scripts/resolveAppEntry.js +3 -0
- 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/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-alpha.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-alpha.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,16 +1,16 @@
|
|
|
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
9
|
import React from 'react';
|
|
11
|
-
import { AppRegistry, StyleSheet } from 'react-native';
|
|
10
|
+
import ReactNative, { AppRegistry, StyleSheet } from 'react-native';
|
|
12
11
|
import DevAppContainer from './environment/DevAppContainer';
|
|
13
12
|
import { createErrorHandler } from './errors/ExpoErrorManager';
|
|
13
|
+
import { createProxyForNativeModules } from './proxies/NativeModules';
|
|
14
14
|
// Represents an app running in the store client or an app built with the legacy `expo build` command.
|
|
15
15
|
// `false` when running in bare workflow, custom dev clients, or `eas build`s (managed or bare).
|
|
16
16
|
// This should be used to ensure code that _should_ exist is treated as such.
|
|
@@ -18,18 +18,7 @@ const isManagedEnvironment = Constants.executionEnvironment === ExecutionEnviron
|
|
|
18
18
|
Constants.executionEnvironment === ExecutionEnvironment.StoreClient;
|
|
19
19
|
// If expo-font is installed and the style preprocessor is available, use it to parse fonts.
|
|
20
20
|
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
|
-
}
|
|
21
|
+
StyleSheet.setStyleAttributePreprocessor('fontFamily', Font.processFontFamily);
|
|
33
22
|
}
|
|
34
23
|
// Asserts if bare workflow isn't setup correctly.
|
|
35
24
|
if (NativeModulesProxy.ExpoUpdates?.isMissingRuntimeVersion) {
|
|
@@ -68,5 +57,13 @@ if (__DEV__) {
|
|
|
68
57
|
originalSetWrapperComponentProvider(() => PatchedProviderComponent);
|
|
69
58
|
};
|
|
70
59
|
}
|
|
60
|
+
const proxiedNativeModules = createProxyForNativeModules(ReactNative.NativeModules);
|
|
61
|
+
Object.defineProperty(ReactNative, 'NativeModules', {
|
|
62
|
+
get() {
|
|
63
|
+
return proxiedNativeModules;
|
|
64
|
+
},
|
|
65
|
+
configurable: true,
|
|
66
|
+
enumerable: true,
|
|
67
|
+
});
|
|
71
68
|
}
|
|
72
69
|
//# 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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,EAAE,EAAE,WAAW,EAAc,UAAU,EAAE,MAAM,cAAc,CAAC;AAEhF,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,yBAAyB,CAAC;AAEtE,sGAAsG;AACtG,gGAAgG;AAChG,6EAA6E;AAC7E,MAAM,oBAAoB,GACxB,SAAS,CAAC,oBAAoB,KAAK,oBAAoB,CAAC,UAAU;IAClE,SAAS,CAAC,oBAAoB,KAAK,oBAAoB,CAAC,WAAW,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,2EAA2E;IAC3E,IAAI,oBAAoB,IAAI,QAAQ,CAAC,EAAE,KAAK,KAAK,EAAE;QACjD,qDAAqD;QACrD,aAAa;QACb,WAAW,CAAC,2BAA2B,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;QAE/D,aAAa;QACb,MAAM,mCAAmC,GAAG,WAAW,CAAC,2BAA2B,CAAC;QAEpF,aAAa;QACb,WAAW,CAAC,2BAA2B,GAAG,CAAC,QAAQ,EAAE,EAAE;YACrD,SAAS,wBAAwB,CAAC,KAAU;gBAC1C,MAAM,iBAAiB,GAAG,QAAQ,EAAE,CAAC;gBAErC,OAAO,CACL,oBAAC,eAAe;oBACd,oBAAC,iBAAiB,OAAK,KAAK,GAAI,CAChB,CACnB,CAAC;YACJ,CAAC;YAED,mCAAmC,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC;QACtE,CAAC,CAAC;KACH;IAED,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 React from 'react';\nimport ReactNative, { AppRegistry, ErrorUtils, StyleSheet } from 'react-native';\n\nimport DevAppContainer from './environment/DevAppContainer';\nimport { createErrorHandler } from './errors/ExpoErrorManager';\nimport { createProxyForNativeModules } from './proxies/NativeModules';\n\n// Represents an app running in the store client or an app built with the legacy `expo build` command.\n// `false` when running in bare workflow, custom dev clients, or `eas build`s (managed or bare).\n// This should be used to ensure code that _should_ exist is treated as such.\nconst isManagedEnvironment =\n Constants.executionEnvironment === ExecutionEnvironment.Standalone ||\n Constants.executionEnvironment === ExecutionEnvironment.StoreClient;\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 // Only enable the fast refresh indicator for managed iOS apps in dev mode.\n if (isManagedEnvironment && Platform.OS === 'ios') {\n // add the dev app container wrapper component on ios\n // @ts-ignore\n AppRegistry.setWrapperComponentProvider(() => DevAppContainer);\n\n // @ts-ignore\n const originalSetWrapperComponentProvider = AppRegistry.setWrapperComponentProvider;\n\n // @ts-ignore\n AppRegistry.setWrapperComponentProvider = (provider) => {\n function PatchedProviderComponent(props: any) {\n const ProviderComponent = provider();\n\n return (\n <DevAppContainer>\n <ProviderComponent {...props} />\n </DevAppContainer>\n );\n }\n\n originalSetWrapperComponentProvider(() => PatchedProviderComponent);\n };\n }\n\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,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=Expo.fx.web.d.ts.map
|
|
@@ -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
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,OAAO,
|
|
1
|
+
{"version":3,"file":"Expo.fx.web.js","sourceRoot":"","sources":["../src/Expo.fx.web.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,eAAe,MAAM,+BAA+B,CAAC;AAE5D,wFAAwF;AACxF,+EAA+E;AAC/E,oFAAoF;AACpF,IAAI,OAAO,EAAE;IACX,qEAAqE;IACrE;IACE,yBAAyB;IACzB,QAAQ,CAAC,EAAE,KAAK,KAAK;QACrB,sDAAsD;QACtD,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;IAED,qDAAqD;IACrD,aAAa;IACb,WAAW,CAAC,2BAA2B,CAAC,GAAG,EAAE,CAAC,eAAe,CAAC,CAAC;IAE/D,aAAa;IACb,MAAM,mCAAmC,GAAG,WAAW,CAAC,2BAA2B,CAAC;IAEpF,aAAa;IACb,WAAW,CAAC,2BAA2B,GAAG,CAAC,QAAQ,EAAE,EAAE;QACrD,SAAS,wBAAwB,CAAC,KAAU;YAC1C,MAAM,iBAAiB,GAAG,QAAQ,EAAE,CAAC;YAErC,OAAO,CACL,oBAAC,eAAe;gBACd,oBAAC,iBAAiB,OAAK,KAAK,GAAI,CAChB,CACnB,CAAC;QACJ,CAAC;QAED,mCAAmC,CAAC,GAAG,EAAE,CAAC,wBAAwB,CAAC,CAAC;IACtE,CAAC,CAAC;CACH","sourcesContent":["import { Platform } from 'expo-modules-core';\nimport * as React from 'react';\nimport { AppRegistry } from 'react-native';\n\nimport DevAppContainer from './environment/DevAppContainer';\n\n// 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.\nif (__DEV__) {\n // Use a wrapper `__DEV__` to remove this entire block in production.\n if (\n // Only on web platforms.\n Platform.OS === 'web' &&\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 // add the dev app container wrapper component to web\n // @ts-ignore\n AppRegistry.setWrapperComponentProvider(() => DevAppContainer);\n\n // @ts-ignore\n const originalSetWrapperComponentProvider = AppRegistry.setWrapperComponentProvider;\n\n // @ts-ignore\n AppRegistry.setWrapperComponentProvider = (provider) => {\n function PatchedProviderComponent(props: any) {\n const ProviderComponent = provider();\n\n return (\n <DevAppContainer>\n <ProviderComponent {...props} />\n </DevAppContainer>\n );\n }\n\n originalSetWrapperComponentProvider(() => PatchedProviderComponent);\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,7 +1,3 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export default
|
|
3
|
-
children?: React.ReactNode;
|
|
4
|
-
}> {
|
|
5
|
-
render(): JSX.Element;
|
|
6
|
-
}
|
|
2
|
+
export default function DevAppContainer({ children }: React.PropsWithChildren<object>): JSX.Element;
|
|
7
3
|
//# sourceMappingURL=DevAppContainer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,UAAU,eAAe,CAAC,EAAE,QAAQ,EAAE,EAAE,KAAK,CAAC,iBAAiB,CAAC,MAAM,CAAC,eAOpF"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import DevLoadingView from '../environment/DevLoadingView';
|
|
3
|
-
export default
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
React.createElement(DevLoadingView, null)));
|
|
8
|
-
}
|
|
3
|
+
export default function DevAppContainer({ children }) {
|
|
4
|
+
return (React.createElement(React.Fragment, null,
|
|
5
|
+
children,
|
|
6
|
+
React.createElement(DevLoadingView, null)));
|
|
9
7
|
}
|
|
10
8
|
//# sourceMappingURL=DevAppContainer.js.map
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,UAAU,eAAe,CAAC,EAAE,QAAQ,EAAmC;IACnF,OAAO,CACL;QACG,QAAQ;QACT,oBAAC,cAAc,OAAG,CACjB,CACJ,CAAC;AACJ,CAAC","sourcesContent":["import * as React from 'react';\n\nimport DevLoadingView from '../environment/DevLoadingView';\n\nexport default function DevAppContainer({ children }: React.PropsWithChildren<object>) {\n return (\n <>\n {children}\n <DevLoadingView />\n </>\n );\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withExpoRoot.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/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,CAMxB"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { attachRecoveredProps } from './RecoveryProps';
|
|
3
2
|
// This hook can be optionally imported because __DEV__ never changes during runtime.
|
|
4
3
|
// Using __DEV__ like this enables tree shaking to remove the hook in production.
|
|
5
4
|
let useDevKeepAwake = () => { };
|
|
@@ -14,8 +13,7 @@ if (__DEV__) {
|
|
|
14
13
|
export default function withExpoRoot(AppRootComponent) {
|
|
15
14
|
return function ExpoRoot(props) {
|
|
16
15
|
useDevKeepAwake();
|
|
17
|
-
|
|
18
|
-
return React.createElement(AppRootComponent, { ...combinedProps });
|
|
16
|
+
return React.createElement(AppRootComponent, { ...props });
|
|
19
17
|
};
|
|
20
18
|
}
|
|
21
19
|
//# sourceMappingURL=withExpoRoot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withExpoRoot.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,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,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAC;IACzC,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import * as React from 'react';\n\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 return <AppRootComponent {...props} />;\n };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,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 +1 @@
|
|
|
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
|
|
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 manifestString?: string;\n [key: string]: any;\n };\n shell?: boolean;\n shellManifestUrl?: string;\n [key: string]: any;\n};\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.web.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withExpoRoot.web.d.ts","sourceRoot":"","sources":["../../src/launch/withExpoRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/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,CAMzB"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { attachRecoveredProps } from './RecoveryProps';
|
|
3
2
|
export default function withExpoRoot(AppRootComponent) {
|
|
4
3
|
return class ExpoRootComponent extends React.Component {
|
|
5
4
|
render() {
|
|
6
|
-
|
|
7
|
-
return React.createElement(AppRootComponent, { ...combinedProps });
|
|
5
|
+
return React.createElement(AppRootComponent, { ...this.props });
|
|
8
6
|
}
|
|
9
7
|
};
|
|
10
8
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withExpoRoot.web.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withExpoRoot.web.js","sourceRoot":"","sources":["../../src/launch/withExpoRoot.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,gBAAwC;IAExC,OAAO,MAAM,iBAAkB,SAAQ,KAAK,CAAC,SAAY;QACvD,MAAM;YACJ,OAAO,oBAAC,gBAAgB,OAAK,IAAI,CAAC,KAAK,GAAI,CAAC;QAC9C,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["import * as React from 'react';\n\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 return <AppRootComponent {...this.props} />;\n }\n };\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":"AAuDA,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,107 @@
|
|
|
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
|
+
/**
|
|
25
|
+
* Other methods that can be called on the NativeModules object that we should ignore. The
|
|
26
|
+
* underlying NativeModules object is sometimes a proxy itself so may not have these methods
|
|
27
|
+
* defined.
|
|
28
|
+
*/
|
|
29
|
+
'hasOwnProperty',
|
|
30
|
+
'isPrototypeOf',
|
|
31
|
+
'propertyIsEnumerable',
|
|
32
|
+
'toJSON',
|
|
33
|
+
'toLocaleString',
|
|
34
|
+
'toString',
|
|
35
|
+
'valueOf',
|
|
36
|
+
'$$typeof',
|
|
37
|
+
]);
|
|
38
|
+
const alreadyErroredModules = new Set();
|
|
39
|
+
let additionalModulesToIgnore = new Set();
|
|
40
|
+
let enabled = true;
|
|
41
|
+
function createErrorMessageForStoreClient(moduleName) {
|
|
42
|
+
return `Your JavaScript code tried to access a native module, ${moduleName}, that isn't supported in Expo Go.
|
|
43
|
+
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.`;
|
|
44
|
+
}
|
|
45
|
+
function createErrorMessageForDevelopmentBuild(moduleName) {
|
|
46
|
+
return `Your JavaScript code tried to access a native module, ${moduleName}, that doesn't exist in this development build.
|
|
47
|
+
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.
|
|
48
|
+
See https://expo.fyi/missing-native-module for more info, including how to disable these errors.`;
|
|
49
|
+
}
|
|
50
|
+
export function createProxyForNativeModules(NativeModules) {
|
|
51
|
+
if (!__DEV__) {
|
|
52
|
+
return NativeModules;
|
|
53
|
+
}
|
|
54
|
+
return new Proxy(NativeModules, {
|
|
55
|
+
get(target, prop, receiver) {
|
|
56
|
+
const value = Reflect.get(target, prop, receiver);
|
|
57
|
+
if (enabled &&
|
|
58
|
+
typeof prop !== 'symbol' &&
|
|
59
|
+
(value === null || value === undefined) &&
|
|
60
|
+
!PROPS_TO_IGNORE.has(prop) &&
|
|
61
|
+
!additionalModulesToIgnore.has(prop) &&
|
|
62
|
+
!alreadyErroredModules.has(prop)) {
|
|
63
|
+
alreadyErroredModules.add(prop);
|
|
64
|
+
const isRunningInStoreClient = global.expo?.modules?.NativeModulesProxy?.modulesConstants.ExponentConstants
|
|
65
|
+
?.executionEnvironment === ExecutionEnvironment.StoreClient ||
|
|
66
|
+
target.NativeUnimoduleProxy?.modulesConstants.ExponentConstants?.executionEnvironment ===
|
|
67
|
+
ExecutionEnvironment.StoreClient;
|
|
68
|
+
if (isRunningInStoreClient) {
|
|
69
|
+
throw new Error(createErrorMessageForStoreClient(prop));
|
|
70
|
+
}
|
|
71
|
+
else if (target.EXDevLauncher) {
|
|
72
|
+
throw new Error(createErrorMessageForDevelopmentBuild(prop));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return value;
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Disable the error thrown when trying to access a native module that doesn't exist in the host
|
|
81
|
+
* runtime. If a module name or array of module names is provided, this method disables the error
|
|
82
|
+
* for only those modules, erasing a previous setting if one exists. If no parameter is provided,
|
|
83
|
+
* this method disables the error for all modules.
|
|
84
|
+
*
|
|
85
|
+
* @param moduleNames Name of module or modules for which to disable the missing native module
|
|
86
|
+
* error. If this parameter is omitted, the error will be disabled globally.
|
|
87
|
+
*/
|
|
88
|
+
export function disableMissingNativeModuleErrors(moduleNames) {
|
|
89
|
+
if (moduleNames) {
|
|
90
|
+
additionalModulesToIgnore =
|
|
91
|
+
typeof moduleNames === 'string' ? new Set([moduleNames]) : new Set(moduleNames);
|
|
92
|
+
enabled = true;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
enabled = false;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Access a native module without throwing an error if it doesn't exist.
|
|
100
|
+
*
|
|
101
|
+
* @param moduleName Name of module to access
|
|
102
|
+
* @returns Corresponding native module object, or null if it doesn't exist
|
|
103
|
+
*/
|
|
104
|
+
export function getNativeModuleIfExists(moduleName) {
|
|
105
|
+
return originalNativeModules[moduleName];
|
|
106
|
+
}
|
|
107
|
+
//# 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;;;;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 /**\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"]}
|
|
@@ -3,22 +3,22 @@
|
|
|
3
3
|
"@react-native-async-storage/async-storage": "~1.17.3",
|
|
4
4
|
"@react-native-community/datetimepicker": "6.2.0",
|
|
5
5
|
"@react-native-masked-view/masked-view": "0.2.7",
|
|
6
|
-
"@react-native-community/netinfo": "9.3.
|
|
6
|
+
"@react-native-community/netinfo": "9.3.3",
|
|
7
7
|
"@react-native-community/slider": "4.2.3",
|
|
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.6",
|
|
11
11
|
"@react-native-segmented-control/segmented-control": "2.4.0",
|
|
12
|
-
"@stripe/stripe-react-native": "0.
|
|
12
|
+
"@stripe/stripe-react-native": "0.18.1",
|
|
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
16
|
"expo-app-loading": "~2.1.0",
|
|
17
17
|
"expo-apple-authentication": "~4.3.0",
|
|
18
|
-
"expo-application": "~
|
|
18
|
+
"expo-application": "~5.0.0",
|
|
19
19
|
"expo-asset": "~8.6.1",
|
|
20
20
|
"expo-auth-session": "~3.7.1",
|
|
21
|
-
"expo-av": "~
|
|
21
|
+
"expo-av": "~13.0.0-beta.1",
|
|
22
22
|
"expo-background-fetch": "~10.3.0",
|
|
23
23
|
"expo-barcode-scanner": "~11.4.0",
|
|
24
24
|
"expo-battery": "~6.3.0",
|
|
@@ -26,25 +26,24 @@
|
|
|
26
26
|
"expo-brightness": "~10.3.0",
|
|
27
27
|
"expo-build-properties": "~0.3.0",
|
|
28
28
|
"expo-calendar": "~10.3.0",
|
|
29
|
-
"expo-camera": "~
|
|
29
|
+
"expo-camera": "~13.0.0-beta.1",
|
|
30
30
|
"expo-cellular": "~4.3.0",
|
|
31
31
|
"expo-checkbox": "~2.2.0",
|
|
32
32
|
"expo-clipboard": "~3.1.0",
|
|
33
|
-
"expo-constants": "~
|
|
33
|
+
"expo-constants": "~14.0.0",
|
|
34
34
|
"expo-contacts": "~10.3.0",
|
|
35
35
|
"expo-crypto": "~11.0.0",
|
|
36
36
|
"expo-dev-client": "~1.3.0",
|
|
37
37
|
"expo-device": "~4.3.0",
|
|
38
38
|
"expo-document-picker": "~10.3.0",
|
|
39
|
-
"expo-error-recovery": "~
|
|
39
|
+
"expo-error-recovery": "~4.0.0",
|
|
40
40
|
"expo-face-detector": "~11.3.0",
|
|
41
|
-
"expo-file-system": "~
|
|
41
|
+
"expo-file-system": "~15.0.0",
|
|
42
42
|
"expo-firebase-analytics": "~7.2.0",
|
|
43
43
|
"expo-firebase-core": "~5.2.0",
|
|
44
44
|
"expo-firebase-recaptcha": "~2.3.0",
|
|
45
|
-
"expo-font": "~
|
|
45
|
+
"expo-font": "~11.0.0",
|
|
46
46
|
"expo-gl": "~11.4.0",
|
|
47
|
-
"expo-gl-cpp": "~11.4.0",
|
|
48
47
|
"expo-google-app-auth": "~8.3.0",
|
|
49
48
|
"expo-haptics": "~11.3.0",
|
|
50
49
|
"expo-image-loader": "~3.2.0",
|
|
@@ -52,8 +51,8 @@
|
|
|
52
51
|
"expo-image-picker": "~13.3.1",
|
|
53
52
|
"expo-in-app-purchases": "~13.1.0",
|
|
54
53
|
"expo-intent-launcher": "~10.3.0",
|
|
55
|
-
"expo-keep-awake": "~
|
|
56
|
-
"expo-linear-gradient": "~
|
|
54
|
+
"expo-keep-awake": "~11.0.0",
|
|
55
|
+
"expo-linear-gradient": "~12.0.0-beta.1",
|
|
57
56
|
"expo-linking": "~3.2.2",
|
|
58
57
|
"expo-local-authentication": "~12.3.0",
|
|
59
58
|
"expo-localization": "~13.1.0",
|
|
@@ -61,7 +60,7 @@
|
|
|
61
60
|
"expo-mail-composer": "~11.3.0",
|
|
62
61
|
"expo-media-library": "~14.2.0",
|
|
63
62
|
"expo-module-template": "~10.7.3",
|
|
64
|
-
"expo-modules-core": "~0.
|
|
63
|
+
"expo-modules-core": "~0.12.0",
|
|
65
64
|
"expo-navigation-bar": "~1.3.0",
|
|
66
65
|
"expo-network": "~4.3.0",
|
|
67
66
|
"expo-notifications": "~0.16.1",
|
|
@@ -86,26 +85,26 @@
|
|
|
86
85
|
"expo-video-thumbnails": "~6.4.0",
|
|
87
86
|
"expo-web-browser": "~11.0.0",
|
|
88
87
|
"lottie-react-native": "5.1.3",
|
|
89
|
-
"react": "18.
|
|
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.2",
|
|
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.7.0",
|
|
95
94
|
"react-native-get-random-values": "~1.8.0",
|
|
96
95
|
"react-native-maps": "0.31.1",
|
|
97
96
|
"react-native-pager-view": "5.4.24",
|
|
98
|
-
"react-native-reanimated": "~2.
|
|
97
|
+
"react-native-reanimated": "~2.10.0",
|
|
99
98
|
"react-native-safe-area-context": "4.3.1",
|
|
100
|
-
"react-native-screens": "~3.
|
|
99
|
+
"react-native-screens": "~3.18.0",
|
|
101
100
|
"react-native-shared-element": "0.8.4",
|
|
102
101
|
"react-native-svg": "12.3.0",
|
|
103
102
|
"react-native-view-shot": "3.3.0",
|
|
104
|
-
"react-native-webview": "11.23.
|
|
103
|
+
"react-native-webview": "11.23.1",
|
|
105
104
|
"sentry-expo": "~5.0.0",
|
|
106
105
|
"unimodules-app-loader": "~3.1.0",
|
|
107
106
|
"unimodules-image-loader-interface": "~6.1.0",
|
|
108
|
-
"@shopify/react-native-skia": "0.1.
|
|
109
|
-
"@shopify/flash-list": "1.
|
|
107
|
+
"@shopify/react-native-skia": "0.1.153",
|
|
108
|
+
"@shopify/flash-list": "1.3.0",
|
|
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-alpha.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"
|
|
@@ -57,16 +61,16 @@
|
|
|
57
61
|
"@babel/runtime": "^7.14.0",
|
|
58
62
|
"@expo/cli": "0.3.1",
|
|
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": "~
|
|
66
|
+
"expo-application": "~5.0.0",
|
|
63
67
|
"expo-asset": "~8.6.1",
|
|
64
|
-
"expo-constants": "~
|
|
65
|
-
"expo-file-system": "~
|
|
66
|
-
"expo-font": "~
|
|
67
|
-
"expo-keep-awake": "~
|
|
68
|
-
"expo-modules-autolinking": "0.
|
|
69
|
-
"expo-modules-core": "0.
|
|
68
|
+
"expo-constants": "~14.0.0",
|
|
69
|
+
"expo-file-system": "~15.0.0",
|
|
70
|
+
"expo-font": "~11.0.0",
|
|
71
|
+
"expo-keep-awake": "~11.0.0",
|
|
72
|
+
"expo-modules-autolinking": "0.11.0",
|
|
73
|
+
"expo-modules-core": "0.12.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",
|
|
@@ -86,9 +90,9 @@
|
|
|
86
90
|
"@types/react-test-renderer": "^18.0.0",
|
|
87
91
|
"@types/uuid": "^3.4.7",
|
|
88
92
|
"expo-module-scripts": "^2.1.1",
|
|
89
|
-
"react": "18.
|
|
93
|
+
"react": "18.1.0",
|
|
90
94
|
"react-dom": "18.0.0",
|
|
91
|
-
"react-native": "0.
|
|
95
|
+
"react-native": "0.70.2"
|
|
92
96
|
},
|
|
93
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "1327fe2bc92f71f7213cd5ddd40fa4f8a5336bc6"
|
|
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":"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"]}
|