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<<c65f172e91f823049cf508cc70663c64>>
* @generated SignedSource<<d8800bc1ed4391e9333258dd7c99f412>>
*/

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

/**
* Layout keeps the overflowInset of a node from its previous revision, instead of computing it again from its children, when neither the node nor its children changed.
*/
@JvmStatic
public fun skipUnchangedOverflowInsetInLayout(): Boolean = accessor.skipUnchangedOverflowInsetInLayout()

/**
* Override getClipBounds on Android views to return the padding box when overflow is hidden
*/
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<<4bcfd7705680a00615bddc6ffeccfe4b>>
* @generated SignedSource<<eb7f9c0f5213ff5cba49495c83438914>>
*/

/**
Expand Down Expand Up @@ -102,6 +102,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var shouldTriggerResponderTransferOnScrollAndroidCache: Boolean? = null
private var skipActivityIdentityAssertionOnHostPauseCache: Boolean? = null
private var skipUnchangedChildrenInDifferentiatorCache: Boolean? = null
private var skipUnchangedOverflowInsetInLayoutCache: Boolean? = null
private var syncAndroidClipBoundsWithOverflowCache: Boolean? = null
private var traceTurboModulePromiseRejectionsOnAndroidCache: Boolean? = null
private var updateRuntimeShadowNodeReferencesOnCommitCache: Boolean? = null
Expand Down Expand Up @@ -857,6 +858,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

override fun syncAndroidClipBoundsWithOverflow(): Boolean {
var cached = syncAndroidClipBoundsWithOverflowCache
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<<f7a31d0435905a87a8ce08a517f9e17d>>
* @generated SignedSource<<358f98df922b0d9dbd89d8f8e903ac29>>
*/

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

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

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

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

@DoNotStrip @JvmStatic public external fun traceTurboModulePromiseRejectionsOnAndroid(): 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<<db85f9c22970c773cc95ab6bf72d9871>>
* @generated SignedSource<<97ba66f8a849c88d77ee4b65a1997129>>
*/

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

override fun skipUnchangedChildrenInDifferentiator(): Boolean = false

override fun skipUnchangedOverflowInsetInLayout(): Boolean = false

override fun syncAndroidClipBoundsWithOverflow(): Boolean = false

override fun traceTurboModulePromiseRejectionsOnAndroid(): 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<<4e53ce712d5e472d8a9dfa673a108aa5>>
* @generated SignedSource<<ced701930d55c03e9b35b2e886a95846>>
*/

/**
Expand Down Expand Up @@ -106,6 +106,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var shouldTriggerResponderTransferOnScrollAndroidCache: Boolean? = null
private var skipActivityIdentityAssertionOnHostPauseCache: Boolean? = null
private var skipUnchangedChildrenInDifferentiatorCache: Boolean? = null
private var skipUnchangedOverflowInsetInLayoutCache: Boolean? = null
private var syncAndroidClipBoundsWithOverflowCache: Boolean? = null
private var traceTurboModulePromiseRejectionsOnAndroidCache: Boolean? = null
private var updateRuntimeShadowNodeReferencesOnCommitCache: Boolean? = null
Expand Down Expand Up @@ -943,6 +944,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

override fun syncAndroidClipBoundsWithOverflow(): Boolean {
var cached = syncAndroidClipBoundsWithOverflowCache
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<<dcfcca254ea381db5ac0cc2ea2a6a66b>>
* @generated SignedSource<<44add928aa34871a70b7f35524ddfd97>>
*/

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

@DoNotStrip public fun skipUnchangedChildrenInDifferentiator(): Boolean

@DoNotStrip public fun skipUnchangedOverflowInsetInLayout(): Boolean

@DoNotStrip public fun syncAndroidClipBoundsWithOverflow(): Boolean

@DoNotStrip public fun traceTurboModulePromiseRejectionsOnAndroid(): 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<<80dd5355f9f95d594f04d6b41fc785f5>>
* @generated SignedSource<<f116ba3a2ab7741055c233f754e114b7>>
*/

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

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

bool syncAndroidClipBoundsWithOverflow() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("syncAndroidClipBoundsWithOverflow");
Expand Down Expand Up @@ -1041,6 +1047,11 @@ bool JReactNativeFeatureFlagsCxxInterop::skipUnchangedChildrenInDifferentiator(
return ReactNativeFeatureFlags::skipUnchangedChildrenInDifferentiator();
}

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

bool JReactNativeFeatureFlagsCxxInterop::syncAndroidClipBoundsWithOverflow(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::syncAndroidClipBoundsWithOverflow();
Expand Down Expand Up @@ -1398,6 +1409,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"skipUnchangedChildrenInDifferentiator",
JReactNativeFeatureFlagsCxxInterop::skipUnchangedChildrenInDifferentiator),
makeNativeMethod(
"skipUnchangedOverflowInsetInLayout",
JReactNativeFeatureFlagsCxxInterop::skipUnchangedOverflowInsetInLayout),
makeNativeMethod(
"syncAndroidClipBoundsWithOverflow",
JReactNativeFeatureFlagsCxxInterop::syncAndroidClipBoundsWithOverflow),
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<<5fcb0abec30cc84df7a627d008f6c92a>>
* @generated SignedSource<<6d35a981b8b0d5c65c478e80ae6cca93>>
*/

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

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

static bool syncAndroidClipBoundsWithOverflow(
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<<9b64fa4c8329098d9c2977ad2a162fbf>>
* @generated SignedSource<<2f8d7b1943ee966572fa7e0ab4354680>>
*/

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

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

bool ReactNativeFeatureFlags::syncAndroidClipBoundsWithOverflow() {
return getAccessor().syncAndroidClipBoundsWithOverflow();
}
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<<0a8759cd09aa452417aaa3720da346ae>>
* @generated SignedSource<<2e63151422c43c51fe760dec4379bb73>>
*/

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

/**
* Layout keeps the overflowInset of a node from its previous revision, instead of computing it again from its children, when neither the node nor its children changed.
*/
RN_EXPORT static bool skipUnchangedOverflowInsetInLayout();

/**
* Override getClipBounds on Android views to return the padding box when overflow is hidden
*/
Expand Down
Loading
Loading