expo 51.0.26 → 51.0.27

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.
@@ -33,7 +33,7 @@ def getRNVersion() {
33
33
  ensureDependeciesWereEvaluated(project)
34
34
 
35
35
  group = 'host.exp.exponent'
36
- version = '51.0.26'
36
+ version = '51.0.27'
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 "51.0.26"
49
+ versionName "51.0.27"
50
50
  consumerProguardFiles("proguard-rules.pro")
51
51
  }
52
52
  testOptions {
@@ -100,8 +100,35 @@ object ExpoReactHostFactory {
100
100
  handler.onWillCreateReactInstance(useDeveloperSupport)
101
101
  }
102
102
 
103
- val reactHostImpl =
104
- ReactHostImpl(
103
+ var reactHostImpl: ReactHostImpl
104
+ try {
105
+ // react-native 0.75.0 removed the ReactJsExceptionHandler parameter
106
+ val constructorWithoutHandler = ReactHostImpl::class.java.getConstructor(
107
+ Context::class.java,
108
+ ReactHostDelegate::class.java,
109
+ ComponentFactory::class.java,
110
+ Boolean::class.javaPrimitiveType,
111
+ Boolean::class.javaPrimitiveType
112
+ )
113
+
114
+ reactHostImpl = constructorWithoutHandler.newInstance(
115
+ context,
116
+ reactHostDelegate,
117
+ componentFactory,
118
+ true,
119
+ useDeveloperSupport
120
+ )
121
+ } catch (e: NoSuchMethodException) {
122
+ val constructorWithHandler = ReactHostImpl::class.java.getConstructor(
123
+ Context::class.java,
124
+ ReactHostDelegate::class.java,
125
+ ComponentFactory::class.java,
126
+ Boolean::class.javaPrimitiveType,
127
+ ReactJsExceptionHandler::class.java,
128
+ Boolean::class.javaPrimitiveType
129
+ )
130
+
131
+ reactHostImpl = constructorWithHandler.newInstance(
105
132
  context,
106
133
  reactHostDelegate,
107
134
  componentFactory,
@@ -109,9 +136,11 @@ object ExpoReactHostFactory {
109
136
  reactJsExceptionHandler,
110
137
  useDeveloperSupport
111
138
  )
112
- .apply {
113
- jsEngineResolutionAlgorithm = reactNativeHost.jsEngineResolutionAlgorithm
114
- }
139
+ }
140
+
141
+ reactHostImpl.apply {
142
+ jsEngineResolutionAlgorithm = reactNativeHost.jsEngineResolutionAlgorithm
143
+ }
115
144
 
116
145
  reactNativeHost.reactNativeHostHandlers.forEach { handler ->
117
146
  handler.onDidCreateDevSupportManager(reactHostImpl.devSupportManager)
@@ -56,7 +56,7 @@
56
56
  "expo-mail-composer": "~13.0.1",
57
57
  "expo-media-library": "~16.0.4",
58
58
  "expo-module-template": "~10.14.12",
59
- "expo-modules-core": "~1.12.20",
59
+ "expo-modules-core": "~1.12.21",
60
60
  "expo-navigation-bar": "~3.0.7",
61
61
  "expo-network": "~6.0.1",
62
62
  "expo-notifications": "~0.28.15",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo",
3
- "version": "51.0.26",
3
+ "version": "51.0.27",
4
4
  "description": "The Expo SDK",
5
5
  "main": "build/Expo.js",
6
6
  "module": "build/Expo.js",
@@ -65,13 +65,13 @@
65
65
  "@expo/config-plugins": "8.0.8",
66
66
  "@expo/metro-config": "0.18.11",
67
67
  "@expo/vector-icons": "^14.0.0",
68
- "babel-preset-expo": "~11.0.13",
68
+ "babel-preset-expo": "~11.0.14",
69
69
  "expo-asset": "~10.0.10",
70
70
  "expo-file-system": "~17.0.1",
71
71
  "expo-font": "~12.0.9",
72
72
  "expo-keep-awake": "~13.0.2",
73
73
  "expo-modules-autolinking": "1.11.1",
74
- "expo-modules-core": "1.12.20",
74
+ "expo-modules-core": "1.12.21",
75
75
  "fbemitter": "^3.0.0",
76
76
  "whatwg-url-without-unicode": "8.0.0-3"
77
77
  },
@@ -83,5 +83,5 @@
83
83
  "react-dom": "18.2.0",
84
84
  "react-native": "0.74.5"
85
85
  },
86
- "gitHead": "2c8e94dfeada02173fca7d07f21a4b1987de545d"
86
+ "gitHead": "07bfec459aad07ff4c792d0fd5fdca853a55dbd0"
87
87
  }