expo 52.0.0-preview.4 → 52.0.0-preview.6
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/android/build.gradle +2 -2
- package/build/dom/global-events.d.ts +4 -0
- package/build/dom/global-events.d.ts.map +1 -0
- package/build/dom/webview-wrapper.d.ts.map +1 -1
- package/bundledNativeModules.json +11 -11
- package/dom/global.d.ts +1 -0
- package/dom/global.js +1 -0
- package/package.json +6 -6
- package/src/dom/global-events.ts +16 -0
- package/src/dom/webview-wrapper.tsx +2 -0
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 = '52.0.0-preview.
|
|
36
|
+
version = '52.0.0-preview.6'
|
|
37
37
|
|
|
38
38
|
buildscript {
|
|
39
39
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
@@ -46,7 +46,7 @@ android {
|
|
|
46
46
|
namespace "expo.core"
|
|
47
47
|
defaultConfig {
|
|
48
48
|
versionCode 1
|
|
49
|
-
versionName "52.0.0-preview.
|
|
49
|
+
versionName "52.0.0-preview.6"
|
|
50
50
|
consumerProguardFiles("proguard-rules.pro")
|
|
51
51
|
}
|
|
52
52
|
testOptions {
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BridgeMessage, JSONValue } from './dom.types';
|
|
2
|
+
export declare function _emitGlobalEvent<TData extends JSONValue>(message: BridgeMessage<TData>): void;
|
|
3
|
+
export declare const addGlobalDomEventListener: <TData extends JSONValue>(onSubscribe: (message: BridgeMessage<TData>) => void) => (() => void);
|
|
4
|
+
//# sourceMappingURL=global-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-events.d.ts","sourceRoot":"","sources":["../../src/dom/global-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAIvD,wBAAgB,gBAAgB,CAAC,KAAK,SAAS,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC,QAEtF;AAED,eAAO,MAAM,yBAAyB,4EACY,IAAI,KACnD,CAAC,MAAM,IAAI,CAKb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webview-wrapper.d.ts","sourceRoot":"","sources":["../../src/dom/webview-wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAiB,QAAQ,EAA4B,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"webview-wrapper.d.ts","sourceRoot":"","sources":["../../src/dom/webview-wrapper.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAiB,QAAQ,EAA4B,MAAM,aAAa,CAAC;AAarF,UAAU,KAAK;IACb,GAAG,EAAE,QAAQ,CAAC;IACd,MAAM,EAAE;QACN,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,QAAA,MAAM,UAAU,sEA+Jd,CAAC;AAaH,wBAAgB,cAAc,CAAC,iBAAiB,EAAE,OAAO,OASxD;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"@react-native-community/datetimepicker": "8.2.0",
|
|
6
6
|
"@react-native-masked-view/masked-view": "0.3.1",
|
|
7
7
|
"@react-native-community/netinfo": "11.4.1",
|
|
8
|
-
"@react-native-community/slider": "4.5.
|
|
8
|
+
"@react-native-community/slider": "4.5.5",
|
|
9
9
|
"@react-native-community/viewpager": "5.0.11",
|
|
10
10
|
"@react-native-picker/picker": "2.9.0",
|
|
11
11
|
"@react-native-segmented-control/segmented-control": "2.5.4",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"expo-apple-authentication": "~7.0.1",
|
|
18
18
|
"expo-application": "~6.0.1",
|
|
19
19
|
"expo-asset": "~11.0.0",
|
|
20
|
-
"expo-audio": "~0.2.
|
|
20
|
+
"expo-audio": "~0.2.3",
|
|
21
21
|
"expo-auth-session": "~6.0.0",
|
|
22
22
|
"expo-av": "~15.0.1",
|
|
23
23
|
"expo-background-fetch": "~13.0.1",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"expo-brightness": "~13.0.2",
|
|
28
28
|
"expo-build-properties": "~0.13.1",
|
|
29
29
|
"expo-calendar": "~14.0.2",
|
|
30
|
-
"expo-camera": "~16.0.
|
|
30
|
+
"expo-camera": "~16.0.3",
|
|
31
31
|
"expo-cellular": "~7.0.1",
|
|
32
32
|
"expo-checkbox": "~4.0.0",
|
|
33
33
|
"expo-clipboard": "~7.0.0",
|
|
34
|
-
"expo-constants": "~17.0.
|
|
34
|
+
"expo-constants": "~17.0.2",
|
|
35
35
|
"expo-contacts": "~14.0.1",
|
|
36
36
|
"expo-crypto": "~14.0.1",
|
|
37
37
|
"expo-dev-client": "~5.0.0-preview.2",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"expo-haptics": "~14.0.0",
|
|
46
46
|
"expo-image": "~2.0.0-preview.0",
|
|
47
47
|
"expo-image-loader": "~5.0.0",
|
|
48
|
-
"expo-image-manipulator": "~13.0.
|
|
48
|
+
"expo-image-manipulator": "~13.0.4",
|
|
49
49
|
"expo-image-picker": "~16.0.0",
|
|
50
50
|
"expo-intent-launcher": "~12.0.1",
|
|
51
51
|
"expo-insights": "~0.8.1",
|
|
@@ -58,20 +58,20 @@
|
|
|
58
58
|
"expo-mail-composer": "~14.0.1",
|
|
59
59
|
"expo-media-library": "~17.0.0",
|
|
60
60
|
"expo-module-template": "~10.15.2",
|
|
61
|
-
"expo-modules-core": "~2.0.0-preview.
|
|
61
|
+
"expo-modules-core": "~2.0.0-preview.5",
|
|
62
62
|
"expo-navigation-bar": "~4.0.1",
|
|
63
63
|
"expo-network": "~7.0.0",
|
|
64
64
|
"expo-notifications": "~0.29.3",
|
|
65
65
|
"expo-print": "~14.0.2",
|
|
66
|
-
"expo-router": "
|
|
66
|
+
"expo-router": "4.0.0-preview.3",
|
|
67
67
|
"expo-screen-capture": "~7.0.0",
|
|
68
68
|
"expo-screen-orientation": "~8.0.0",
|
|
69
69
|
"expo-secure-store": "~14.0.0",
|
|
70
|
-
"expo-sensors": "~14.0.
|
|
70
|
+
"expo-sensors": "~14.0.1",
|
|
71
71
|
"expo-sharing": "~13.0.0",
|
|
72
72
|
"expo-sms": "~13.0.0",
|
|
73
73
|
"expo-speech": "~13.0.0",
|
|
74
|
-
"expo-splash-screen": "~0.28.
|
|
74
|
+
"expo-splash-screen": "~0.28.3",
|
|
75
75
|
"expo-sqlite": "~15.0.1",
|
|
76
76
|
"expo-status-bar": "~2.0.0",
|
|
77
77
|
"expo-store-review": "~8.0.0",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"expo-video-thumbnails": "~9.0.0",
|
|
84
84
|
"expo-video": "~2.0.0-preview.0",
|
|
85
85
|
"expo-web-browser": "~14.0.0",
|
|
86
|
-
"jest-expo": "
|
|
86
|
+
"jest-expo": "52.0.0-preview.1",
|
|
87
87
|
"lottie-react-native": "7.0.0",
|
|
88
88
|
"react": "18.3.1",
|
|
89
89
|
"react-dom": "18.3.1",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"react-native-pager-view": "6.4.1",
|
|
96
96
|
"react-native-reanimated": "~3.16.1",
|
|
97
97
|
"react-native-screens": "4.0.0-beta.14",
|
|
98
|
-
"react-native-safe-area-context": "4.
|
|
98
|
+
"react-native-safe-area-context": "4.12.0",
|
|
99
99
|
"react-native-svg": "15.8.0",
|
|
100
100
|
"react-native-view-shot": "3.8.0",
|
|
101
101
|
"react-native-webview": "13.12.2",
|
package/dom/global.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../build/dom/global-events';
|
package/dom/global.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../src/dom/global-events';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo",
|
|
3
|
-
"version": "52.0.0-preview.
|
|
3
|
+
"version": "52.0.0-preview.6",
|
|
4
4
|
"description": "The Expo SDK",
|
|
5
5
|
"main": "src/Expo.ts",
|
|
6
6
|
"module": "src/Expo.ts",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@babel/runtime": "^7.20.0",
|
|
69
69
|
"@expo/cli": "0.19.3",
|
|
70
|
-
"@expo/config": "10.0.
|
|
71
|
-
"@expo/config-plugins": "9.0.
|
|
70
|
+
"@expo/config": "10.0.2",
|
|
71
|
+
"@expo/config-plugins": "9.0.3",
|
|
72
72
|
"@expo/metro-config": "0.19.0-preview.2",
|
|
73
73
|
"@expo/vector-icons": "^14.0.0",
|
|
74
74
|
"babel-preset-expo": "~12.0.0-preview.1",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"expo-file-system": "~18.0.0",
|
|
77
77
|
"expo-font": "~13.0.0",
|
|
78
78
|
"expo-keep-awake": "~14.0.1",
|
|
79
|
-
"expo-modules-autolinking": "2.0.0-preview.
|
|
80
|
-
"expo-modules-core": "2.0.0-preview.
|
|
79
|
+
"expo-modules-autolinking": "2.0.0-preview.2",
|
|
80
|
+
"expo-modules-core": "2.0.0-preview.5",
|
|
81
81
|
"fbemitter": "^3.0.0",
|
|
82
82
|
"web-streams-polyfill": "^3.3.2",
|
|
83
83
|
"whatwg-url-without-unicode": "8.0.0-3"
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"optional": true
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "fc8a1408cab82e003dd2424db2994d7dea958067"
|
|
112
112
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BridgeMessage, JSONValue } from './dom.types';
|
|
2
|
+
|
|
3
|
+
const globalListeners = new Set<(message: BridgeMessage<any>) => void>();
|
|
4
|
+
|
|
5
|
+
export function _emitGlobalEvent<TData extends JSONValue>(message: BridgeMessage<TData>) {
|
|
6
|
+
globalListeners.forEach((listener) => listener(message));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export const addGlobalDomEventListener = <TData extends JSONValue>(
|
|
10
|
+
onSubscribe: (message: BridgeMessage<TData>) => void
|
|
11
|
+
): (() => void) => {
|
|
12
|
+
globalListeners.add(onSubscribe);
|
|
13
|
+
return () => {
|
|
14
|
+
globalListeners.delete(onSubscribe);
|
|
15
|
+
};
|
|
16
|
+
};
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import { AppState } from 'react-native';
|
|
4
4
|
|
|
5
5
|
import type { BridgeMessage, DOMProps, WebViewProps, WebViewRef } from './dom.types';
|
|
6
|
+
import { _emitGlobalEvent } from './global-events';
|
|
6
7
|
import {
|
|
7
8
|
getInjectBodySizeObserverScript,
|
|
8
9
|
getInjectEventScript,
|
|
@@ -177,6 +178,7 @@ const RawWebView = React.forwardRef<object, Props>(({ dom, source, ...marshalPro
|
|
|
177
178
|
} else {
|
|
178
179
|
dom?.onMessage?.(event);
|
|
179
180
|
}
|
|
181
|
+
_emitGlobalEvent({ type, data });
|
|
180
182
|
},
|
|
181
183
|
});
|
|
182
184
|
});
|