Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<d4e81be344e15b275d015651b4fa824d>>
* @generated SignedSource<<3272436c25e63e1e2152f4af9aafcffa>>
*/

/**
Expand Down Expand Up @@ -306,6 +306,12 @@ public object ReactNativeFeatureFlags {
@JvmStatic
public fun enableSwiftUIBasedFilters(): Boolean = accessor.enableSwiftUIBasedFilters()

/**
* When enabled, TurboModule methods with void return type will be invoked synchronously on the JS thread instead of being dispatched asynchronously. Only applies to pure TurboModules, not interop modules.
*/
@JvmStatic
public fun enableSyncVoidMethods(): Boolean = accessor.enableSyncVoidMethods()

/**
* Enables View Culling: as soon as a view goes off screen, it can be reused anywhere in the UI and pieced together with other items to create new UI elements.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<189cc2dd3b42cd736191f13b442e7317>>
* @generated SignedSource<<62523747d1f721ebc68d3b3b77bc4a48>>
*/

/**
Expand Down Expand Up @@ -66,6 +66,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var enablePropsUpdateReconciliationAndroidCache: Boolean? = null
private var enableSchedulerDelegateInvalidationCache: Boolean? = null
private var enableSwiftUIBasedFiltersCache: Boolean? = null
private var enableSyncVoidMethodsCache: Boolean? = null
private var enableViewCullingCache: Boolean? = null
private var enableViewRecyclingCache: Boolean? = null
private var enableViewRecyclingForImageCache: Boolean? = null
Expand Down Expand Up @@ -527,6 +528,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

override fun enableSyncVoidMethods(): Boolean {
var cached = enableSyncVoidMethodsCache
if (cached == null) {
cached = ReactNativeFeatureFlagsCxxInterop.enableSyncVoidMethods()
enableSyncVoidMethodsCache = cached
}
return cached
}

override fun enableViewCulling(): Boolean {
var cached = enableViewCullingCache
if (cached == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<81c6672ae539af203fae7e0f9cf541a6>>
* @generated SignedSource<<2b91d3a03ec71265f0f9d1f25cf61d66>>
*/

/**
Expand Down Expand Up @@ -120,6 +120,8 @@ public object ReactNativeFeatureFlagsCxxInterop {

@DoNotStrip @JvmStatic public external fun enableSwiftUIBasedFilters(): Boolean

@DoNotStrip @JvmStatic public external fun enableSyncVoidMethods(): Boolean

@DoNotStrip @JvmStatic public external fun enableViewCulling(): Boolean

@DoNotStrip @JvmStatic public external fun enableViewRecycling(): Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<053d67947ccd1a3556c8f6e1b6af5a14>>
* @generated SignedSource<<46918ab06dcb1dd3c1409a2bf847e775>>
*/

/**
Expand Down Expand Up @@ -115,6 +115,8 @@ public open class ReactNativeFeatureFlagsDefaults : ReactNativeFeatureFlagsProvi

override fun enableSwiftUIBasedFilters(): Boolean = false

override fun enableSyncVoidMethods(): Boolean = false

override fun enableViewCulling(): Boolean = false

override fun enableViewRecycling(): Boolean = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<24972f077ba738a8191a2956be61b491>>
* @generated SignedSource<<a478da71ad26ed30a6fd0610ec90f301>>
*/

/**
Expand Down Expand Up @@ -70,6 +70,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var enablePropsUpdateReconciliationAndroidCache: Boolean? = null
private var enableSchedulerDelegateInvalidationCache: Boolean? = null
private var enableSwiftUIBasedFiltersCache: Boolean? = null
private var enableSyncVoidMethodsCache: Boolean? = null
private var enableViewCullingCache: Boolean? = null
private var enableViewRecyclingCache: Boolean? = null
private var enableViewRecyclingForImageCache: Boolean? = null
Expand Down Expand Up @@ -577,6 +578,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

override fun enableSyncVoidMethods(): Boolean {
var cached = enableSyncVoidMethodsCache
if (cached == null) {
cached = currentProvider.enableSyncVoidMethods()
accessedFeatureFlags.add("enableSyncVoidMethods")
enableSyncVoidMethodsCache = cached
}
return cached
}

override fun enableViewCulling(): Boolean {
var cached = enableViewCullingCache
if (cached == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<a7c69ce7e10faeb5328412c5e29552cf>>
* @generated SignedSource<<6dd7973e8cdb5896dd05cc34d32b4d87>>
*/

/**
Expand Down Expand Up @@ -115,6 +115,8 @@ public interface ReactNativeFeatureFlagsProvider {

@DoNotStrip public fun enableSwiftUIBasedFilters(): Boolean

@DoNotStrip public fun enableSyncVoidMethods(): Boolean

@DoNotStrip public fun enableViewCulling(): Boolean

@DoNotStrip public fun enableViewRecycling(): Boolean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<74f0602ce337a86730efe638ab8e966d>>
* @generated SignedSource<<41c6ef0fd874996ba107d6e6ef8d0c56>>
*/

/**
Expand Down Expand Up @@ -315,6 +315,12 @@ class ReactNativeFeatureFlagsJavaProvider
return method(javaProvider_);
}

bool enableSyncVoidMethods() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("enableSyncVoidMethods");
return method(javaProvider_);
}

bool enableViewCulling() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("enableViewCulling");
Expand Down Expand Up @@ -825,6 +831,11 @@ bool JReactNativeFeatureFlagsCxxInterop::enableSwiftUIBasedFilters(
return ReactNativeFeatureFlags::enableSwiftUIBasedFilters();
}

bool JReactNativeFeatureFlagsCxxInterop::enableSyncVoidMethods(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::enableSyncVoidMethods();
}

bool JReactNativeFeatureFlagsCxxInterop::enableViewCulling(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::enableViewCulling();
Expand Down Expand Up @@ -1224,6 +1235,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"enableSwiftUIBasedFilters",
JReactNativeFeatureFlagsCxxInterop::enableSwiftUIBasedFilters),
makeNativeMethod(
"enableSyncVoidMethods",
JReactNativeFeatureFlagsCxxInterop::enableSyncVoidMethods),
makeNativeMethod(
"enableViewCulling",
JReactNativeFeatureFlagsCxxInterop::enableViewCulling),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<2e867941f693c14c0c52475d790cfed4>>
* @generated SignedSource<<4fa295306f59d64cbfe739fa68cdf7fa>>
*/

/**
Expand Down Expand Up @@ -168,6 +168,9 @@ class JReactNativeFeatureFlagsCxxInterop
static bool enableSwiftUIBasedFilters(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);

static bool enableSyncVoidMethods(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);

static bool enableViewCulling(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<9c49f2931ab219997bc29969de95805d>>
* @generated SignedSource<<71a2b6b2ad1cfff01739580ab7a3e968>>
*/

/**
Expand Down Expand Up @@ -210,6 +210,10 @@ bool ReactNativeFeatureFlags::enableSwiftUIBasedFilters() {
return getAccessor().enableSwiftUIBasedFilters();
}

bool ReactNativeFeatureFlags::enableSyncVoidMethods() {
return getAccessor().enableSyncVoidMethods();
}

bool ReactNativeFeatureFlags::enableViewCulling() {
return getAccessor().enableViewCulling();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @generated SignedSource<<d15e79bbfac17a32fd7981538afc3683>>
* @generated SignedSource<<b2ae844c39354903981ebb1b1ab700c4>>
*/

/**
Expand Down Expand Up @@ -269,6 +269,11 @@ class ReactNativeFeatureFlags {
*/
RN_EXPORT static bool enableSwiftUIBasedFilters();

/**
* When enabled, TurboModule methods with void return type will be invoked synchronously on the JS thread instead of being dispatched asynchronously. Only applies to pure TurboModules, not interop modules.
*/
RN_EXPORT static bool enableSyncVoidMethods();

/**
* Enables View Culling: as soon as a view goes off screen, it can be reused anywhere in the UI and pieced together with other items to create new UI elements.
*/
Expand Down
Loading
Loading