@stream-io/react-native-callingx 0.1.0-beta.3 → 0.1.0-beta.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.
|
@@ -10,7 +10,7 @@ import com.facebook.react.ReactNativeHost
|
|
|
10
10
|
import com.facebook.react.bridge.Arguments
|
|
11
11
|
import com.facebook.react.bridge.ReactContext
|
|
12
12
|
import com.facebook.react.bridge.UiThreadUtil
|
|
13
|
-
import com.facebook.react.internal.featureflags.
|
|
13
|
+
import com.facebook.react.internal.featureflags.ReactNativeFeatureFlags
|
|
14
14
|
import com.facebook.react.jstasks.HeadlessJsTaskConfig
|
|
15
15
|
import com.facebook.react.jstasks.HeadlessJsTaskContext
|
|
16
16
|
import com.facebook.react.jstasks.HeadlessJsTaskEventListener
|
|
@@ -124,7 +124,7 @@ class HeadlessTaskManager(private val context: Context) : HeadlessJsTaskEventLis
|
|
|
124
124
|
|
|
125
125
|
protected val reactContext: ReactContext?
|
|
126
126
|
get() {
|
|
127
|
-
if (
|
|
127
|
+
if (ReactNativeFeatureFlags.enableBridgelessArchitecture()) {
|
|
128
128
|
val reactHost =
|
|
129
129
|
checkNotNull(reactHost) { "ReactHost is not initialized in New Architecture" }
|
|
130
130
|
return reactHost.currentReactContext
|
|
@@ -135,7 +135,7 @@ class HeadlessTaskManager(private val context: Context) : HeadlessJsTaskEventLis
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
private fun createReactContextAndScheduleTask(taskConfig: HeadlessJsTaskConfig) {
|
|
138
|
-
if (
|
|
138
|
+
if (ReactNativeFeatureFlags.enableBridgelessArchitecture()) {
|
|
139
139
|
val reactHost = checkNotNull(reactHost)
|
|
140
140
|
reactHost.addReactInstanceEventListener(
|
|
141
141
|
object : ReactInstanceEventListener {
|
package/package.json
CHANGED