expo 50.0.0-alpha.2 → 50.0.0-alpha.4
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/environment/DevLoadingView.d.ts.map +1 -1
- package/build/environment/DevLoadingView.js +2 -1
- package/build/environment/DevLoadingView.js.map +1 -1
- package/build/environment/ExpoGo.web.d.ts +3 -0
- package/build/environment/ExpoGo.web.d.ts.map +1 -0
- package/build/environment/ExpoGo.web.js +7 -0
- package/build/environment/ExpoGo.web.js.map +1 -0
- package/build/environment/getInitialSafeArea.d.ts +0 -4
- package/build/environment/getInitialSafeArea.d.ts.map +1 -1
- package/build/environment/getInitialSafeArea.js +0 -4
- package/build/environment/getInitialSafeArea.js.map +1 -1
- package/build/errors/ExpoErrorManager.d.ts +1 -1
- package/build/errors/ExpoErrorManager.d.ts.map +1 -1
- package/build/errors/ExpoErrorManager.js +2 -36
- package/build/errors/ExpoErrorManager.js.map +1 -1
- package/build/errors/ExpoErrorManager.native.d.ts +3 -0
- package/build/errors/ExpoErrorManager.native.d.ts.map +1 -0
- package/build/errors/ExpoErrorManager.native.js +39 -0
- package/build/errors/ExpoErrorManager.native.js.map +1 -0
- package/build/launch/withDevTools.d.ts +0 -4
- package/build/launch/withDevTools.d.ts.map +1 -1
- package/build/launch/withDevTools.ios.d.ts +7 -0
- package/build/launch/withDevTools.ios.d.ts.map +1 -0
- package/build/launch/withDevTools.ios.js +36 -0
- package/build/launch/withDevTools.ios.js.map +1 -0
- package/build/launch/withDevTools.js +11 -26
- package/build/launch/withDevTools.js.map +1 -1
- package/build/launch/withDevTools.web.d.ts +3 -0
- package/build/launch/withDevTools.web.d.ts.map +1 -0
- package/build/launch/withDevTools.web.js +15 -0
- package/build/launch/withDevTools.web.js.map +1 -0
- package/bundledNativeModules.json +25 -25
- package/package.json +12 -12
- package/scripts/autolinking.rb +1 -0
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.
|
|
13
|
+
s.platforms = { :ios => '13.0', :tvos => '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 = '50.0.0-alpha.
|
|
36
|
+
version = '50.0.0-alpha.4'
|
|
37
37
|
|
|
38
38
|
buildscript {
|
|
39
39
|
def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
|
|
@@ -100,7 +100,7 @@ android {
|
|
|
100
100
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
101
101
|
targetSdkVersion safeExtGet("targetSdkVersion", 33)
|
|
102
102
|
versionCode 1
|
|
103
|
-
versionName "50.0.0-alpha.
|
|
103
|
+
versionName "50.0.0-alpha.4"
|
|
104
104
|
consumerProguardFiles("proguard-rules.pro")
|
|
105
105
|
}
|
|
106
106
|
lintOptions {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevLoadingView.d.ts","sourceRoot":"","sources":["../../src/environment/DevLoadingView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DevLoadingView.d.ts","sourceRoot":"","sources":["../../src/environment/DevLoadingView.tsx"],"names":[],"mappings":"AAQA,MAAM,CAAC,OAAO,UAAU,cAAc,uBAiFrC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// Prevent pulling in all of expo-modules-core on web
|
|
2
|
+
import { EventEmitter } from 'expo-modules-core/build/EventEmitter';
|
|
2
3
|
import React, { useEffect, useState, useRef, useMemo } from 'react';
|
|
3
4
|
import { Animated, StyleSheet, Text, Platform, View } from 'react-native';
|
|
4
5
|
import DevLoadingViewNativeModule from './DevLoadingViewNativeModule';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DevLoadingView.js","sourceRoot":"","sources":["../../src/environment/DevLoadingView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"DevLoadingView.js","sourceRoot":"","sources":["../../src/environment/DevLoadingView.tsx"],"names":[],"mappings":"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","sourcesContent":["// Prevent pulling in all of expo-modules-core on web\nimport { EventEmitter } from 'expo-modules-core/build/EventEmitter';\nimport React, { useEffect, useState, useRef, useMemo } from 'react';\nimport { Animated, StyleSheet, Text, Platform, View } from 'react-native';\n\nimport DevLoadingViewNativeModule from './DevLoadingViewNativeModule';\nimport { getInitialSafeArea } from './getInitialSafeArea';\n\nexport default function DevLoadingView() {\n const [message, setMessage] = useState('Refreshing...');\n const [isDevLoading, setIsDevLoading] = useState(false);\n const [isAnimating, setIsAnimating] = useState(false);\n const translateY = useRef(new Animated.Value(0)).current;\n const emitter = useMemo<EventEmitter>(() => {\n try {\n return new EventEmitter(DevLoadingViewNativeModule);\n } catch (error) {\n throw new Error(\n 'Failed to instantiate native emitter in `DevLoadingView` because the native module `DevLoadingView` is undefined: ' +\n error.message\n );\n }\n }, []);\n\n useEffect(() => {\n if (!emitter) return;\n\n function handleShowMessage(event: { message: string }) {\n setMessage(event.message);\n // TODO: if we show the refreshing banner and don't get a hide message\n // for 3 seconds, warn the user that it's taking a while and suggest\n // they reload\n\n translateY.setValue(0);\n setIsDevLoading(true);\n }\n\n function handleHide() {\n // TODO: if we showed the 'refreshing' banner less than 250ms ago, delay\n // switching to the 'finished' banner\n\n setIsAnimating(true);\n setIsDevLoading(false);\n Animated.timing(translateY, {\n toValue: 150,\n delay: 1000,\n duration: 350,\n useNativeDriver: Platform.OS !== 'web',\n }).start(({ finished }) => {\n if (finished) {\n setIsAnimating(false);\n translateY.setValue(0);\n }\n });\n }\n\n const showMessageSubscription = emitter.addListener(\n 'devLoadingView:showMessage',\n handleShowMessage\n );\n const hideSubscription = emitter.addListener('devLoadingView:hide', handleHide);\n\n return function cleanup() {\n showMessageSubscription.remove();\n hideSubscription.remove();\n };\n }, [translateY, emitter]);\n\n if (!isDevLoading && !isAnimating) {\n return null;\n }\n\n return (\n <Animated.View style={[styles.animatedContainer, { transform: [{ translateY }] }]}>\n <View style={styles.banner}>\n <View style={styles.contentContainer}>\n <View style={{ flexDirection: 'row' }}>\n <Text style={styles.text}>{message}</Text>\n </View>\n\n <View style={{ flex: 1 }}>\n <Text style={styles.subtitle}>\n {isDevLoading ? 'Using Fast Refresh' : \"Don't see your changes? Reload the app\"}\n </Text>\n </View>\n </View>\n </View>\n </Animated.View>\n );\n}\n\nconst styles = StyleSheet.create({\n animatedContainer: {\n // @ts-expect-error: fixed is not a valid value for position in Yoga but it is on web.\n position: Platform.select({\n web: 'fixed',\n default: 'absolute',\n }),\n pointerEvents: 'none',\n bottom: 0,\n left: 0,\n right: 0,\n zIndex: 42, // arbitrary\n },\n\n banner: {\n flex: 1,\n overflow: 'visible',\n backgroundColor: 'rgba(0,0,0,0.75)',\n paddingBottom: getInitialSafeArea().bottom,\n },\n contentContainer: {\n flex: 1,\n paddingTop: 10,\n paddingBottom: 5,\n alignItems: 'center',\n justifyContent: 'center',\n textAlign: 'center',\n },\n text: {\n color: '#fff',\n fontSize: 15,\n },\n subtitle: {\n color: 'rgba(255,255,255,0.8)',\n },\n});\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoGo.web.d.ts","sourceRoot":"","sources":["../../src/environment/ExpoGo.web.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,YAEhC;AAED,wBAAgB,sBAAsB,SAErC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoGo.web.js","sourceRoot":"","sources":["../../src/environment/ExpoGo.web.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,iBAAiB;IAC/B,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,sBAAsB;IACpC,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["export function isRunningInExpoGo() {\n return false;\n}\n\nexport function getExpoGoProjectConfig() {\n return null;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialSafeArea.d.ts","sourceRoot":"","sources":["../../src/environment/getInitialSafeArea.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"getInitialSafeArea.d.ts","sourceRoot":"","sources":["../../src/environment/getInitialSafeArea.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,IAAI;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAOjG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInitialSafeArea.js","sourceRoot":"","sources":["../../src/environment/getInitialSafeArea.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"getInitialSafeArea.js","sourceRoot":"","sources":["../../src/environment/getInitialSafeArea.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB;IAChC,OAAO;QACL,GAAG,EAAE,CAAC;QACN,MAAM,EAAE,CAAC;QACT,IAAI,EAAE,CAAC;QACP,KAAK,EAAE,CAAC;KACT,CAAC;AACJ,CAAC","sourcesContent":["export function getInitialSafeArea(): { top: number; bottom: number; left: number; right: number } {\n return {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n };\n}\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare function createErrorHandler(originalHandler: any): (error: any, isFatal: any) =>
|
|
1
|
+
export declare function createErrorHandler(originalHandler: any): (error: any, isFatal: any) => any;
|
|
2
2
|
export declare function disableErrorHandling(): void;
|
|
3
3
|
//# sourceMappingURL=ExpoErrorManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoErrorManager.d.ts","sourceRoot":"","sources":["../../src/errors/ExpoErrorManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExpoErrorManager.d.ts","sourceRoot":"","sources":["../../src/errors/ExpoErrorManager.ts"],"names":[],"mappings":"AAAA,wBAAgB,kBAAkB,CAAC,eAAe,KAAA,qCAEjD;AAED,wBAAgB,oBAAoB,SAAK"}
|
|
@@ -1,39 +1,5 @@
|
|
|
1
|
-
let isErrorHandlingEnabled = true;
|
|
2
|
-
const developmentBuildMessage = `If you're trying to use a module that is not supported in Expo Go, you need to create a development build of your app. See https://docs.expo.dev/development/introduction/ for more info.`;
|
|
3
|
-
function customizeUnavailableMessage(error) {
|
|
4
|
-
error.message += '\n\n' + developmentBuildMessage;
|
|
5
|
-
}
|
|
6
|
-
function customizeModuleIsMissingMessage(error) {
|
|
7
|
-
error.message = `Your JavaScript code tried to access a native module that doesn't exist.
|
|
8
|
-
|
|
9
|
-
${developmentBuildMessage}`;
|
|
10
|
-
}
|
|
11
|
-
function customizeError(error) {
|
|
12
|
-
if ('code' in error && error.code === 'ERR_UNAVAILABLE') {
|
|
13
|
-
customizeUnavailableMessage(error);
|
|
14
|
-
}
|
|
15
|
-
else if (error.message.includes('Native module cannot be null') || // RN 0.64 and below message
|
|
16
|
-
error.message.includes('`new NativeEventEmitter()` requires a non-null argument.') // RN 0.65+ message
|
|
17
|
-
) {
|
|
18
|
-
customizeModuleIsMissingMessage(error);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
function errorHandler(originalHandler, error, isFatal) {
|
|
22
|
-
if (error instanceof Error) {
|
|
23
|
-
customizeError(error);
|
|
24
|
-
}
|
|
25
|
-
originalHandler(error, isFatal);
|
|
26
|
-
}
|
|
27
1
|
export function createErrorHandler(originalHandler) {
|
|
28
|
-
return (error, isFatal) =>
|
|
29
|
-
if (isErrorHandlingEnabled) {
|
|
30
|
-
errorHandler(originalHandler, error, isFatal);
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
originalHandler(error, isFatal);
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
export function disableErrorHandling() {
|
|
37
|
-
isErrorHandlingEnabled = false;
|
|
2
|
+
return (error, isFatal) => originalHandler(error, isFatal);
|
|
38
3
|
}
|
|
4
|
+
export function disableErrorHandling() { }
|
|
39
5
|
//# sourceMappingURL=ExpoErrorManager.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpoErrorManager.js","sourceRoot":"","sources":["../../src/errors/ExpoErrorManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExpoErrorManager.js","sourceRoot":"","sources":["../../src/errors/ExpoErrorManager.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,kBAAkB,CAAC,eAAe;IAChD,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAC7D,CAAC;AAED,MAAM,UAAU,oBAAoB,KAAI,CAAC","sourcesContent":["export function createErrorHandler(originalHandler) {\n return (error, isFatal) => originalHandler(error, isFatal);\n}\n\nexport function disableErrorHandling() {}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoErrorManager.native.d.ts","sourceRoot":"","sources":["../../src/errors/ExpoErrorManager.native.ts"],"names":[],"mappings":"AAmCA,wBAAgB,kBAAkB,CAAC,eAAe,KAAA,sCASjD;AAED,wBAAgB,oBAAoB,SAEnC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
let isErrorHandlingEnabled = true;
|
|
2
|
+
const developmentBuildMessage = `If you're trying to use a module that is not supported in Expo Go, you need to create a development build of your app. See https://docs.expo.dev/development/introduction/ for more info.`;
|
|
3
|
+
function customizeUnavailableMessage(error) {
|
|
4
|
+
error.message += '\n\n' + developmentBuildMessage;
|
|
5
|
+
}
|
|
6
|
+
function customizeModuleIsMissingMessage(error) {
|
|
7
|
+
error.message = `Your JavaScript code tried to access a native module that doesn't exist.
|
|
8
|
+
|
|
9
|
+
${developmentBuildMessage}`;
|
|
10
|
+
}
|
|
11
|
+
function customizeError(error) {
|
|
12
|
+
if ('code' in error && error.code === 'ERR_UNAVAILABLE') {
|
|
13
|
+
customizeUnavailableMessage(error);
|
|
14
|
+
}
|
|
15
|
+
else if (error.message.includes('Native module cannot be null') || // RN 0.64 and below message
|
|
16
|
+
error.message.includes('`new NativeEventEmitter()` requires a non-null argument.') // RN 0.65+ message
|
|
17
|
+
) {
|
|
18
|
+
customizeModuleIsMissingMessage(error);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function errorHandler(originalHandler, error, isFatal) {
|
|
22
|
+
if (error instanceof Error) {
|
|
23
|
+
customizeError(error);
|
|
24
|
+
}
|
|
25
|
+
originalHandler(error, isFatal);
|
|
26
|
+
}
|
|
27
|
+
export function createErrorHandler(originalHandler) {
|
|
28
|
+
return (error, isFatal) => {
|
|
29
|
+
if (isErrorHandlingEnabled) {
|
|
30
|
+
errorHandler(originalHandler, error, isFatal);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
originalHandler(error, isFatal);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function disableErrorHandling() {
|
|
37
|
+
isErrorHandlingEnabled = false;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=ExpoErrorManager.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExpoErrorManager.native.js","sourceRoot":"","sources":["../../src/errors/ExpoErrorManager.native.ts"],"names":[],"mappings":"AAGA,IAAI,sBAAsB,GAAG,IAAI,CAAC;AAElC,MAAM,uBAAuB,GAAG,2LAA2L,CAAC;AAE5N,SAAS,2BAA2B,CAAC,KAAiB;IACpD,KAAK,CAAC,OAAO,IAAI,MAAM,GAAG,uBAAuB,CAAC;AACpD,CAAC;AAED,SAAS,+BAA+B,CAAC,KAAY;IACnD,KAAK,CAAC,OAAO,GAAG;;EAEhB,uBAAuB,EAAE,CAAC;AAC5B,CAAC;AAED,SAAS,cAAc,CAAC,KAAyB;IAC/C,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,iBAAiB,EAAE;QACvD,2BAA2B,CAAC,KAAK,CAAC,CAAC;KACpC;SAAM,IACL,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,8BAA8B,CAAC,IAAI,4BAA4B;QACtF,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,0DAA0D,CAAC,CAAC,mBAAmB;MACtG;QACA,+BAA+B,CAAC,KAAK,CAAC,CAAC;KACxC;AACH,CAAC;AAED,SAAS,YAAY,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO;IACnD,IAAI,KAAK,YAAY,KAAK,EAAE;QAC1B,cAAc,CAAC,KAAK,CAAC,CAAC;KACvB;IACD,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AAClC,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,eAAe;IAChD,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACxB,IAAI,sBAAsB,EAAE;YAC1B,YAAY,CAAC,eAAe,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;YAC9C,OAAO;SACR;QAED,eAAe,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAClC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oBAAoB;IAClC,sBAAsB,GAAG,KAAK,CAAC;AACjC,CAAC","sourcesContent":["// Similar interface to the one used in expo modules.\ntype CodedError = Error & { code?: string };\n\nlet isErrorHandlingEnabled = true;\n\nconst developmentBuildMessage = `If you're trying to use a module that is not supported in Expo Go, you need to create a development build of your app. See https://docs.expo.dev/development/introduction/ for more info.`;\n\nfunction customizeUnavailableMessage(error: CodedError) {\n error.message += '\\n\\n' + developmentBuildMessage;\n}\n\nfunction customizeModuleIsMissingMessage(error: Error) {\n error.message = `Your JavaScript code tried to access a native module that doesn't exist. \n\n${developmentBuildMessage}`;\n}\n\nfunction customizeError(error: Error | CodedError) {\n if ('code' in error && error.code === 'ERR_UNAVAILABLE') {\n customizeUnavailableMessage(error);\n } else if (\n error.message.includes('Native module cannot be null') || // RN 0.64 and below message\n error.message.includes('`new NativeEventEmitter()` requires a non-null argument.') // RN 0.65+ message\n ) {\n customizeModuleIsMissingMessage(error);\n }\n}\n\nfunction errorHandler(originalHandler, error, isFatal) {\n if (error instanceof Error) {\n customizeError(error);\n }\n originalHandler(error, isFatal);\n}\n\nexport function createErrorHandler(originalHandler) {\n return (error, isFatal) => {\n if (isErrorHandlingEnabled) {\n errorHandler(originalHandler, error, isFatal);\n return;\n }\n\n originalHandler(error, isFatal);\n };\n}\n\nexport function disableErrorHandling() {\n isErrorHandlingEnabled = false;\n}\n"]}
|
|
@@ -1,7 +1,3 @@
|
|
|
1
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
2
|
export declare function withDevTools<TComponent extends React.ComponentType<any>>(AppRootComponent: TComponent): React.ComponentType<React.ComponentProps<TComponent>>;
|
|
7
3
|
//# sourceMappingURL=withDevTools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withDevTools.d.ts","sourceRoot":"","sources":["../../src/launch/withDevTools.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withDevTools.d.ts","sourceRoot":"","sources":["../../src/launch/withDevTools.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,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,CAuBvD"}
|
|
@@ -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.ios.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDevTools.ios.d.ts","sourceRoot":"","sources":["../../src/launch/withDevTools.ios.tsx"],"names":[],"mappings":"AAAA,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,CAmCvD"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import DevLoadingView from '../environment/DevLoadingView';
|
|
3
|
+
import { isRunningInExpoGo } from '../environment/ExpoGo';
|
|
4
|
+
/**
|
|
5
|
+
* Append the Expo Fast Refresh view and optionally
|
|
6
|
+
* keep the screen awake if `expo-keep-awake` is installed.
|
|
7
|
+
*/
|
|
8
|
+
export function withDevTools(AppRootComponent) {
|
|
9
|
+
// This hook can be optionally imported because __DEV__ never changes during runtime.
|
|
10
|
+
// Using __DEV__ like this enables tree shaking to remove the hook in production.
|
|
11
|
+
const useOptionalKeepAwake = (() => {
|
|
12
|
+
try {
|
|
13
|
+
// Optionally import expo-keep-awake
|
|
14
|
+
const { useKeepAwake, ExpoKeepAwakeTag } = require('expo-keep-awake');
|
|
15
|
+
return () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });
|
|
16
|
+
}
|
|
17
|
+
catch { }
|
|
18
|
+
return () => { };
|
|
19
|
+
})();
|
|
20
|
+
const shouldUseExpoFastRefreshView = isRunningInExpoGo();
|
|
21
|
+
function WithDevTools(props) {
|
|
22
|
+
useOptionalKeepAwake();
|
|
23
|
+
if (shouldUseExpoFastRefreshView) {
|
|
24
|
+
return (React.createElement(React.Fragment, null,
|
|
25
|
+
React.createElement(AppRootComponent, { ...props }),
|
|
26
|
+
React.createElement(DevLoadingView, null)));
|
|
27
|
+
}
|
|
28
|
+
return React.createElement(AppRootComponent, { ...props });
|
|
29
|
+
}
|
|
30
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
31
|
+
const name = AppRootComponent.displayName || AppRootComponent.name || 'Anonymous';
|
|
32
|
+
WithDevTools.displayName = `withDevTools(${name})`;
|
|
33
|
+
}
|
|
34
|
+
return WithDevTools;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=withDevTools.ios.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDevTools.ios.js","sourceRoot":"","sources":["../../src/launch/withDevTools.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;GAGG;AACH,MAAM,UAAU,YAAY,CAC1B,gBAA4B;IAE5B,qFAAqF;IACrF,iFAAiF;IACjF,MAAM,oBAAoB,GAA2B,CAAC,GAAG,EAAE;QACzD,IAAI;YACF,oCAAoC;YACpC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;YACtE,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,CAAC,CAAC;SACnF;QAAC,MAAM,GAAE;QACV,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;IAClB,CAAC,CAAC,EAAE,CAAC;IAEL,MAAM,4BAA4B,GAAG,iBAAiB,EAAE,CAAC;IAEzD,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,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;QACzC,MAAM,IAAI,GAAG,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;QAClF,YAAY,CAAC,WAAW,GAAG,gBAAgB,IAAI,GAAG,CAAC;KACpD;IAED,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport DevLoadingView from '../environment/DevLoadingView';\nimport { isRunningInExpoGo } from '../environment/ExpoGo';\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 try {\n // Optionally import expo-keep-awake\n const { useKeepAwake, ExpoKeepAwakeTag } = require('expo-keep-awake');\n return () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });\n } catch {}\n return () => {};\n })();\n\n const shouldUseExpoFastRefreshView = isRunningInExpoGo();\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 if (process.env.NODE_ENV !== 'production') {\n const name = AppRootComponent.displayName || AppRootComponent.name || 'Anonymous';\n WithDevTools.displayName = `withDevTools(${name})`;\n }\n\n return WithDevTools;\n}\n"]}
|
|
@@ -1,41 +1,26 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { isRunningInExpoGo } from '../environment/ExpoGo';
|
|
5
|
-
/**
|
|
6
|
-
* Append the Expo Fast Refresh view and optionally
|
|
7
|
-
* keep the screen awake if `expo-keep-awake` is installed.
|
|
8
|
-
*/
|
|
2
|
+
// Keep the screen awake on Android, we don't use the Fast Refresh overlay here.
|
|
3
|
+
// The default behavior here is to skip the custom Fast Refresh indicator.
|
|
9
4
|
export function withDevTools(AppRootComponent) {
|
|
10
5
|
// This hook can be optionally imported because __DEV__ never changes during runtime.
|
|
11
6
|
// Using __DEV__ like this enables tree shaking to remove the hook in production.
|
|
12
7
|
const useOptionalKeepAwake = (() => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });
|
|
18
|
-
}
|
|
19
|
-
catch { }
|
|
8
|
+
try {
|
|
9
|
+
// Optionally import expo-keep-awake
|
|
10
|
+
const { useKeepAwake, ExpoKeepAwakeTag } = require('expo-keep-awake');
|
|
11
|
+
return () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });
|
|
20
12
|
}
|
|
13
|
+
catch { }
|
|
21
14
|
return () => { };
|
|
22
15
|
})();
|
|
23
|
-
const shouldUseExpoFastRefreshView = Platform.select({
|
|
24
|
-
web: true,
|
|
25
|
-
ios: isRunningInExpoGo(),
|
|
26
|
-
default: false,
|
|
27
|
-
});
|
|
28
16
|
function WithDevTools(props) {
|
|
29
17
|
useOptionalKeepAwake();
|
|
30
|
-
if (shouldUseExpoFastRefreshView) {
|
|
31
|
-
return (React.createElement(React.Fragment, null,
|
|
32
|
-
React.createElement(AppRootComponent, { ...props }),
|
|
33
|
-
React.createElement(DevLoadingView, null)));
|
|
34
|
-
}
|
|
35
18
|
return React.createElement(AppRootComponent, { ...props });
|
|
36
19
|
}
|
|
37
|
-
|
|
38
|
-
|
|
20
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
21
|
+
const name = AppRootComponent.displayName || AppRootComponent.name || 'Anonymous';
|
|
22
|
+
WithDevTools.displayName = `withDevTools(${name})`;
|
|
23
|
+
}
|
|
39
24
|
return WithDevTools;
|
|
40
25
|
}
|
|
41
26
|
//# sourceMappingURL=withDevTools.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withDevTools.js","sourceRoot":"","sources":["../../src/launch/withDevTools.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"withDevTools.js","sourceRoot":"","sources":["../../src/launch/withDevTools.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,gFAAgF;AAChF,0EAA0E;AAC1E,MAAM,UAAU,YAAY,CAC1B,gBAA4B;IAE5B,qFAAqF;IACrF,iFAAiF;IACjF,MAAM,oBAAoB,GAA2B,CAAC,GAAG,EAAE;QACzD,IAAI;YACF,oCAAoC;YACpC,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;YACtE,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,0BAA0B,EAAE,IAAI,EAAE,CAAC,CAAC;SACnF;QAAC,MAAM,GAAE;QACV,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;IAClB,CAAC,CAAC,EAAE,CAAC;IAEL,SAAS,YAAY,CAAC,KAAuC;QAC3D,oBAAoB,EAAE,CAAC;QACvB,OAAO,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAAC;IACzC,CAAC;IAED,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;QACzC,MAAM,IAAI,GAAG,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;QAClF,YAAY,CAAC,WAAW,GAAG,gBAAgB,IAAI,GAAG,CAAC;KACpD;IAED,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["import * as React from 'react';\n\n// Keep the screen awake on Android, we don't use the Fast Refresh overlay here.\n// The default behavior here is to skip the custom Fast Refresh indicator.\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 try {\n // Optionally import expo-keep-awake\n const { useKeepAwake, ExpoKeepAwakeTag } = require('expo-keep-awake');\n return () => useKeepAwake(ExpoKeepAwakeTag, { suppressDeactivateWarnings: true });\n } catch {}\n return () => {};\n })();\n\n function WithDevTools(props: React.ComponentProps<TComponent>) {\n useOptionalKeepAwake();\n return <AppRootComponent {...props} />;\n }\n\n if (process.env.NODE_ENV !== 'production') {\n const name = AppRootComponent.displayName || AppRootComponent.name || 'Anonymous';\n WithDevTools.displayName = `withDevTools(${name})`;\n }\n\n return WithDevTools;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDevTools.web.d.ts","sourceRoot":"","sources":["../../src/launch/withDevTools.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,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,CAgBvD"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import DevLoadingView from '../environment/DevLoadingView';
|
|
3
|
+
export function withDevTools(AppRootComponent) {
|
|
4
|
+
function WithDevTools(props) {
|
|
5
|
+
return (React.createElement(React.Fragment, null,
|
|
6
|
+
React.createElement(AppRootComponent, { ...props }),
|
|
7
|
+
React.createElement(DevLoadingView, null)));
|
|
8
|
+
}
|
|
9
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
10
|
+
const name = AppRootComponent.displayName || AppRootComponent.name || 'Anonymous';
|
|
11
|
+
WithDevTools.displayName = `withDevTools(${name})`;
|
|
12
|
+
}
|
|
13
|
+
return WithDevTools;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=withDevTools.web.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDevTools.web.js","sourceRoot":"","sources":["../../src/launch/withDevTools.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,MAAM,UAAU,YAAY,CAC1B,gBAA4B;IAE5B,SAAS,YAAY,CAAC,KAAuC;QAC3D,OAAO,CACL;YACE,oBAAC,gBAAgB,OAAK,KAAK,GAAI;YAC/B,oBAAC,cAAc,OAAG,CACjB,CACJ,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;QACzC,MAAM,IAAI,GAAG,gBAAgB,CAAC,WAAW,IAAI,gBAAgB,CAAC,IAAI,IAAI,WAAW,CAAC;QAClF,YAAY,CAAC,WAAW,GAAG,gBAAgB,IAAI,GAAG,CAAC;KACpD;IAED,OAAO,YAAY,CAAC;AACtB,CAAC","sourcesContent":["import * as React from 'react';\n\nimport DevLoadingView from '../environment/DevLoadingView';\n\nexport function withDevTools<TComponent extends React.ComponentType<any>>(\n AppRootComponent: TComponent\n): React.ComponentType<React.ComponentProps<TComponent>> {\n function WithDevTools(props: React.ComponentProps<TComponent>) {\n return (\n <>\n <AppRootComponent {...props} />\n <DevLoadingView />\n </>\n );\n }\n\n if (process.env.NODE_ENV !== 'production') {\n const name = AppRootComponent.displayName || AppRootComponent.name || 'Anonymous';\n WithDevTools.displayName = `withDevTools(${name})`;\n }\n\n return WithDevTools;\n}\n"]}
|
|
@@ -13,74 +13,74 @@
|
|
|
13
13
|
"expo-app-auth": "~11.1.0",
|
|
14
14
|
"expo-app-loader-provider": "~8.0.0",
|
|
15
15
|
"expo-apple-authentication": "~6.1.2",
|
|
16
|
-
"expo-application": "~5.
|
|
16
|
+
"expo-application": "~5.5.0",
|
|
17
17
|
"expo-asset": "~8.12.0",
|
|
18
|
-
"expo-auth-session": "~5.
|
|
19
|
-
"expo-av": "~13.
|
|
20
|
-
"expo-background-fetch": "~11.
|
|
18
|
+
"expo-auth-session": "~5.2.0",
|
|
19
|
+
"expo-av": "~13.7.0",
|
|
20
|
+
"expo-background-fetch": "~11.6.0",
|
|
21
21
|
"expo-barcode-scanner": "~12.7.0",
|
|
22
22
|
"expo-battery": "~7.5.0",
|
|
23
|
-
"expo-blur": "~12.
|
|
23
|
+
"expo-blur": "~12.7.0",
|
|
24
24
|
"expo-brightness": "~11.6.0",
|
|
25
25
|
"expo-build-properties": "~0.9.1",
|
|
26
26
|
"expo-calendar": "~12.0.0",
|
|
27
|
-
"expo-camera": "~13.
|
|
27
|
+
"expo-camera": "~13.7.0",
|
|
28
28
|
"expo-cellular": "~5.5.0",
|
|
29
29
|
"expo-checkbox": "~2.5.0",
|
|
30
|
-
"expo-clipboard": "~4.
|
|
31
|
-
"expo-constants": "~15.
|
|
32
|
-
"expo-contacts": "~12.
|
|
30
|
+
"expo-clipboard": "~4.6.0",
|
|
31
|
+
"expo-constants": "~15.1.0",
|
|
32
|
+
"expo-contacts": "~12.5.0",
|
|
33
33
|
"expo-crypto": "~12.6.0",
|
|
34
34
|
"expo-dev-client": "~3.1.0",
|
|
35
|
-
"expo-device": "~5.
|
|
35
|
+
"expo-device": "~5.7.0",
|
|
36
36
|
"expo-document-picker": "~11.7.0",
|
|
37
37
|
"expo-face-detector": "~12.4.0",
|
|
38
|
-
"expo-file-system": "~15.
|
|
39
|
-
"expo-font": "~11.
|
|
40
|
-
"expo-gl": "~13.
|
|
38
|
+
"expo-file-system": "~15.7.0",
|
|
39
|
+
"expo-font": "~11.7.0",
|
|
40
|
+
"expo-gl": "~13.3.0",
|
|
41
41
|
"expo-google-app-auth": "~8.3.0",
|
|
42
42
|
"expo-haptics": "~12.6.0",
|
|
43
|
-
"expo-image": "~1.5.
|
|
43
|
+
"expo-image": "~1.5.1",
|
|
44
44
|
"expo-image-loader": "~4.4.0",
|
|
45
45
|
"expo-image-manipulator": "~11.5.0",
|
|
46
46
|
"expo-image-picker": "~14.5.0",
|
|
47
47
|
"expo-in-app-purchases": "~14.5.0",
|
|
48
48
|
"expo-intent-launcher": "~10.9.0",
|
|
49
49
|
"expo-insights": "~0.4.0",
|
|
50
|
-
"expo-keep-awake": "~12.
|
|
50
|
+
"expo-keep-awake": "~12.6.0",
|
|
51
51
|
"expo-linear-gradient": "~12.5.0",
|
|
52
|
-
"expo-linking": "~6.
|
|
52
|
+
"expo-linking": "~6.1.0",
|
|
53
53
|
"expo-local-authentication": "~13.6.0",
|
|
54
54
|
"expo-localization": "~14.5.0",
|
|
55
55
|
"expo-location": "~16.3.0",
|
|
56
56
|
"expo-mail-composer": "~12.5.0",
|
|
57
57
|
"expo-media-library": "~15.6.0",
|
|
58
58
|
"expo-module-template": "~10.11.0",
|
|
59
|
-
"expo-modules-core": "~1.
|
|
59
|
+
"expo-modules-core": "~1.8.0",
|
|
60
60
|
"expo-navigation-bar": "~2.5.0",
|
|
61
61
|
"expo-network": "~5.6.0",
|
|
62
|
-
"expo-notifications": "~0.
|
|
62
|
+
"expo-notifications": "~0.24.1",
|
|
63
63
|
"expo-permissions": "~14.4.0",
|
|
64
64
|
"expo-print": "~12.6.0",
|
|
65
65
|
"expo-random": "~13.4.0",
|
|
66
|
-
"expo-router": "~3.1.
|
|
66
|
+
"expo-router": "~3.1.1",
|
|
67
67
|
"expo-screen-capture": "~5.5.0",
|
|
68
68
|
"expo-screen-orientation": "~6.2.0",
|
|
69
69
|
"expo-secure-store": "~12.5.0",
|
|
70
|
-
"expo-sensors": "~12.
|
|
70
|
+
"expo-sensors": "~12.6.0",
|
|
71
71
|
"expo-sharing": "~11.7.0",
|
|
72
72
|
"expo-sms": "~11.5.0",
|
|
73
73
|
"expo-speech": "~11.5.0",
|
|
74
|
-
"expo-splash-screen": "~0.
|
|
75
|
-
"expo-sqlite": "~11.
|
|
76
|
-
"expo-status-bar": "~1.
|
|
74
|
+
"expo-splash-screen": "~0.23.0",
|
|
75
|
+
"expo-sqlite": "~11.7.0",
|
|
76
|
+
"expo-status-bar": "~1.8.0",
|
|
77
77
|
"expo-store-review": "~6.6.0",
|
|
78
78
|
"expo-system-ui": "~2.6.0",
|
|
79
79
|
"expo-task-manager": "~11.5.0",
|
|
80
80
|
"expo-tracking-transparency": "~3.2.0",
|
|
81
|
-
"expo-updates": "~0.
|
|
81
|
+
"expo-updates": "~0.21.0",
|
|
82
82
|
"expo-video-thumbnails": "~7.6.0",
|
|
83
|
-
"expo-web-browser": "~12.
|
|
83
|
+
"expo-web-browser": "~12.6.0",
|
|
84
84
|
"lottie-react-native": "6.1.2",
|
|
85
85
|
"react": "18.2.0",
|
|
86
86
|
"react-dom": "18.2.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo",
|
|
3
|
-
"version": "50.0.0-alpha.
|
|
3
|
+
"version": "50.0.0-alpha.4",
|
|
4
4
|
"description": "The Expo SDK",
|
|
5
5
|
"main": "build/Expo.js",
|
|
6
6
|
"module": "build/Expo.js",
|
|
@@ -57,18 +57,18 @@
|
|
|
57
57
|
"homepage": "https://github.com/expo/expo/tree/main/packages/expo",
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@babel/runtime": "^7.20.0",
|
|
60
|
-
"@expo/cli": "0.
|
|
61
|
-
"@expo/config": "8.3.
|
|
62
|
-
"@expo/config-plugins": "7.
|
|
60
|
+
"@expo/cli": "0.13.1",
|
|
61
|
+
"@expo/config": "8.3.1",
|
|
62
|
+
"@expo/config-plugins": "7.5.0",
|
|
63
63
|
"@expo/vector-icons": "^13.0.0",
|
|
64
|
-
"babel-preset-expo": "~9.
|
|
65
|
-
"expo-application": "~5.
|
|
64
|
+
"babel-preset-expo": "~9.7.0",
|
|
65
|
+
"expo-application": "~5.5.0",
|
|
66
66
|
"expo-asset": "~8.12.0",
|
|
67
|
-
"expo-file-system": "~15.
|
|
68
|
-
"expo-font": "~11.
|
|
69
|
-
"expo-keep-awake": "~12.
|
|
70
|
-
"expo-modules-autolinking": "1.
|
|
71
|
-
"expo-modules-core": "1.
|
|
67
|
+
"expo-file-system": "~15.7.0",
|
|
68
|
+
"expo-font": "~11.7.0",
|
|
69
|
+
"expo-keep-awake": "~12.6.0",
|
|
70
|
+
"expo-modules-autolinking": "1.6.0",
|
|
71
|
+
"expo-modules-core": "1.8.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
74
|
"@types/react": "~18.0.14",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"react-dom": "18.2.0",
|
|
79
79
|
"react-native": "0.72.4"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "2bd82552d004cba40601572c8f141f063150620c"
|
|
82
82
|
}
|
package/scripts/autolinking.rb
CHANGED
|
@@ -17,6 +17,7 @@ def use_expo_modules!(options = {})
|
|
|
17
17
|
@current_target_definition.autolinking_manager = Expo::AutolinkingManager.new(self, @current_target_definition, options).use_expo_modules!
|
|
18
18
|
|
|
19
19
|
maybe_generate_xcode_env_file!()
|
|
20
|
+
generate_or_remove_xcode_env_updates_file!()
|
|
20
21
|
end
|
|
21
22
|
|
|
22
23
|
def use_expo_modules_tests!(options = {})
|