vxrn 2.9.1 → 2.10.0
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/dist/exports/build.mjs +6 -9
- package/dist/exports/build.mjs.map +1 -1
- package/dist/exports/build.native.js +6 -9
- package/dist/exports/build.native.js.map +1 -1
- package/dist/exports/prebuildWithoutExpo.mjs +16 -1
- package/dist/exports/prebuildWithoutExpo.mjs.map +1 -1
- package/dist/exports/prebuildWithoutExpo.native.js +16 -1
- package/dist/exports/prebuildWithoutExpo.native.js.map +1 -1
- package/dist/utils/createNativeDevEngine.mjs +10 -3
- package/dist/utils/createNativeDevEngine.mjs.map +1 -1
- package/dist/utils/createNativeDevEngine.native.js +8 -3
- package/dist/utils/createNativeDevEngine.native.js.map +1 -1
- package/package.json +14 -14
- package/src/exports/build.lifecycle.test.ts +151 -0
- package/src/exports/build.ts +6 -11
- package/src/exports/prebuildWithoutExpo.ts +16 -1
- package/src/utils/createNativeDevEngine.ts +10 -6
- package/types/exports/build.d.ts.map +1 -1
- package/types/exports/prebuildWithoutExpo.d.ts.map +1 -1
- package/types/utils/createNativeDevEngine.d.ts.map +1 -1
|
@@ -140,7 +140,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
|
140
140
|
) -> Bool {
|
|
141
141
|
let delegate = ReactNativeDelegate()
|
|
142
142
|
let factory = RCTReactNativeFactory(delegate: delegate)
|
|
143
|
-
delegate.dependencyProvider =
|
|
143
|
+
delegate.dependencyProvider = OneDependencyProvider()
|
|
144
144
|
reactNativeDelegate = delegate
|
|
145
145
|
reactNativeFactory = factory
|
|
146
146
|
${backgroundTasks ? ` OneBackgroundTasksRegisterHost(factory, launchOptions)
|
|
@@ -149,6 +149,21 @@ ${backgroundTasks ? ` OneBackgroundTasksRegisterHost(factory, launchOptions)
|
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
// react native creates these modules on the main queue while the instance
|
|
153
|
+
// initializes. left lazy, the first js access blocks the js thread on a
|
|
154
|
+
// synchronous main queue hop that waits behind the app's own launch work.
|
|
155
|
+
class OneDependencyProvider: RCTAppDependencyProvider {
|
|
156
|
+
override func unstableModulesRequiringMainQueueSetup() -> [String] {
|
|
157
|
+
super.unstableModulesRequiringMainQueueSetup() + [
|
|
158
|
+
"PlatformConstants",
|
|
159
|
+
"DeviceInfo",
|
|
160
|
+
"AccessibilityManager",
|
|
161
|
+
"Appearance",
|
|
162
|
+
"OneNativeSafeAreaContext",
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
152
167
|
class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
|
|
153
168
|
override func bundleURL() -> URL? {
|
|
154
169
|
#if DEBUG
|