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<<0128ee1e6f9a35114e76a548f1ccc8ab>>
* @generated SignedSource<<7d2aaa6f1519e6afa9faeab706006575>>
*/

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

/**
* Commits the props set by `setNativeProps` during a JS task in one shadow tree commit per surface, in a microtask, instead of one commit per call. Reads of the shadow tree from JS commit them first. Bridgeless only.
*/
@JvmStatic
public fun enableSetNativePropsBatching(): Boolean = accessor.enableSetNativePropsBatching()

/**
* When enabled, it will use SwiftUI for filter effects like blur on iOS.
*/
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<<eda7892bb6355bf6e239bc56948b06c5>>
* @generated SignedSource<<5d6259ea28fd7f45e7d8c3a14202700e>>
*/

/**
Expand Down Expand Up @@ -72,6 +72,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var enablePreparedTextLayoutCache: Boolean? = null
private var enablePropsUpdateReconciliationAndroidCache: Boolean? = null
private var enableResizeObserverByDefaultCache: Boolean? = null
private var enableSetNativePropsBatchingCache: Boolean? = null
private var enableSwiftUIBasedFiltersCache: Boolean? = null
private var enableViewCullingCache: Boolean? = null
private var enableViewRecyclingCache: Boolean? = null
Expand Down Expand Up @@ -590,6 +591,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

override fun enableSwiftUIBasedFilters(): Boolean {
var cached = enableSwiftUIBasedFiltersCache
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<<8606a8e4878360df1538b4218534377a>>
* @generated SignedSource<<b2de54571212b7707d30fb45b786bb31>>
*/

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

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

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

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

@DoNotStrip @JvmStatic public external fun enableViewCulling(): 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<<49d72918b9b9df7d50b7baa9fa4aa85b>>
* @generated SignedSource<<06dcb12e5e640bb6172f260e39d17549>>
*/

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

override fun enableResizeObserverByDefault(): Boolean = false

override fun enableSetNativePropsBatching(): Boolean = false

override fun enableSwiftUIBasedFilters(): Boolean = false

override fun enableViewCulling(): 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<<0f7a0db5da3bb94bb71a0557628dcf2d>>
* @generated SignedSource<<0ecdf63083bb931a92fac84bf6b6b113>>
*/

/**
Expand Down Expand Up @@ -76,6 +76,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var enablePreparedTextLayoutCache: Boolean? = null
private var enablePropsUpdateReconciliationAndroidCache: Boolean? = null
private var enableResizeObserverByDefaultCache: Boolean? = null
private var enableSetNativePropsBatchingCache: Boolean? = null
private var enableSwiftUIBasedFiltersCache: Boolean? = null
private var enableViewCullingCache: Boolean? = null
private var enableViewRecyclingCache: Boolean? = null
Expand Down Expand Up @@ -646,6 +647,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

override fun enableSwiftUIBasedFilters(): Boolean {
var cached = enableSwiftUIBasedFiltersCache
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<<33bd0d69031266aecf69a8b4b216936f>>
* @generated SignedSource<<7601cb65b6770139fed6fe5fde95583d>>
*/

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

@DoNotStrip public fun enableResizeObserverByDefault(): Boolean

@DoNotStrip public fun enableSetNativePropsBatching(): Boolean

@DoNotStrip public fun enableSwiftUIBasedFilters(): Boolean

@DoNotStrip public fun enableViewCulling(): 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<<5948daf54ab796ec4bc2754bd309cbc1>>
* @generated SignedSource<<c0f427f385252507266fb768a63f9560>>
*/

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

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

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

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

bool JReactNativeFeatureFlagsCxxInterop::enableSwiftUIBasedFilters(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::enableSwiftUIBasedFilters();
Expand Down Expand Up @@ -1341,6 +1352,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"enableResizeObserverByDefault",
JReactNativeFeatureFlagsCxxInterop::enableResizeObserverByDefault),
makeNativeMethod(
"enableSetNativePropsBatching",
JReactNativeFeatureFlagsCxxInterop::enableSetNativePropsBatching),
makeNativeMethod(
"enableSwiftUIBasedFilters",
JReactNativeFeatureFlagsCxxInterop::enableSwiftUIBasedFilters),
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<<5156494ed5baa3f0ee71fc46544680f0>>
* @generated SignedSource<<9306c3f75d8dadad47db3123454f2e62>>
*/

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

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

static bool enableSwiftUIBasedFilters(
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<<67d108d1c225a982e2b6d443d19ea02d>>
* @generated SignedSource<<67159cd0c2cfbd8ffda54b02498ad5b0>>
*/

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

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

bool ReactNativeFeatureFlags::enableSwiftUIBasedFilters() {
return getAccessor().enableSwiftUIBasedFilters();
}
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<<59361ec9827f932f3f0ff8400d262580>>
* @generated SignedSource<<0091ec152736bb8470618636c88c4c03>>
*/

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

/**
* Commits the props set by `setNativeProps` during a JS task in one shadow tree commit per surface, in a microtask, instead of one commit per call. Reads of the shadow tree from JS commit them first. Bridgeless only.
*/
RN_EXPORT static bool enableSetNativePropsBatching();

/**
* When enabled, it will use SwiftUI for filter effects like blur on iOS.
*/
Expand Down
Loading
Loading