expo-template-bare-minimum 55.0.0-canary-20251008-6acbc1c → 55.0.0-canary-20251008-f2d1b4a

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.
@@ -6,37 +6,26 @@ import android.content.res.Configuration
6
6
  import com.facebook.react.PackageList
7
7
  import com.facebook.react.ReactApplication
8
8
  import com.facebook.react.ReactNativeApplicationEntryPoint.loadReactNative
9
- import com.facebook.react.ReactNativeHost
10
9
  import com.facebook.react.ReactPackage
11
10
  import com.facebook.react.ReactHost
12
11
  import com.facebook.react.common.ReleaseLevel
13
12
  import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint
14
- import com.facebook.react.defaults.DefaultReactNativeHost
15
13
 
16
14
  import expo.modules.ApplicationLifecycleDispatcher
17
- import expo.modules.ReactNativeHostWrapper
15
+ import expo.modules.ExpoReactHostFactory
18
16
 
19
17
  class MainApplication : Application(), ReactApplication {
20
18
 
21
- override val reactNativeHost: ReactNativeHost = ReactNativeHostWrapper(
22
- this,
23
- object : DefaultReactNativeHost(this) {
24
- override fun getPackages(): List<ReactPackage> =
25
- PackageList(this).packages.apply {
26
- // Packages that cannot be autolinked yet can be added manually here, for example:
27
- // add(MyReactNativePackage())
28
- }
29
-
30
- override fun getJSMainModuleName(): String = ".expo/.virtual-metro-entry"
31
-
32
- override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
33
-
34
- override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
35
- }
36
- )
37
-
38
- override val reactHost: ReactHost
39
- get() = ReactNativeHostWrapper.createReactHost(applicationContext, reactNativeHost)
19
+ override val reactHost: ReactHost by lazy {
20
+ ExpoReactHostFactory.getDefaultReactHost(
21
+ context = applicationContext,
22
+ packageList =
23
+ PackageList(this).packages.apply {
24
+ // Packages that cannot be autolinked yet can be added manually here, for example:
25
+ // add(MyReactNativePackage())
26
+ }
27
+ )
28
+ }
40
29
 
41
30
  override fun onCreate() {
42
31
  super.onCreate()
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "expo-template-bare-minimum",
3
3
  "description": "This bare project template includes a minimal setup for using unimodules with React Native.",
4
4
  "license": "0BSD",
5
- "version": "55.0.0-canary-20251008-6acbc1c",
5
+ "version": "55.0.0-canary-20251008-f2d1b4a",
6
6
  "main": "index.js",
7
7
  "scripts": {
8
8
  "start": "expo start --dev-client",
@@ -11,8 +11,8 @@
11
11
  "web": "expo start --web"
12
12
  },
13
13
  "dependencies": {
14
- "expo": "55.0.0-canary-20251008-6acbc1c",
15
- "expo-status-bar": "3.0.9-canary-20251008-6acbc1c",
14
+ "expo": "55.0.0-canary-20251008-f2d1b4a",
15
+ "expo-status-bar": "3.0.9-canary-20251008-f2d1b4a",
16
16
  "react": "19.1.1",
17
17
  "react-native": "0.82.0-rc.5"
18
18
  }