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<<3a6a61e2cc2bf01a35ab5c3919462ad5>>
* @generated SignedSource<<152d2c6f279f3e7f2c11badd0a4a4be0>>
*/

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

/**
* Enables scroll-position stability improvements for variable-height VirtualizedLists, including spacer-length stabilization, improved native maintainVisibleContentPosition anchoring, and default anchoring.
*/
@JvmStatic
public fun enableVirtualizedListMaintainVisibleContentPosition(): Boolean = accessor.enableVirtualizedListMaintainVisibleContentPosition()

/**
* Prevents a borderless ripple feedback underlay from projecting the entire view background on Android, which could hide the background and ripple.
*/
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<<fe927f4acf804e05b74dbe606e39746f>>
* @generated SignedSource<<afda4736c685b8e62939a677ee3af45f>>
*/

/**
Expand Down Expand Up @@ -82,6 +82,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var enableViewRecyclingForTextCache: Boolean? = null
private var enableViewRecyclingForViewCache: Boolean? = null
private var enableVirtualViewContainerStateExperimentalCache: Boolean? = null
private var enableVirtualizedListMaintainVisibleContentPositionCache: Boolean? = null
private var fixBorderlessRippleAndroidCache: Boolean? = null
private var fixMappingOfEventPrioritiesBetweenFabricAndReactCache: Boolean? = null
private var fixMultilineContentJumpAndroidCache: Boolean? = null
Expand Down Expand Up @@ -683,6 +684,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

override fun fixBorderlessRippleAndroid(): Boolean {
var cached = fixBorderlessRippleAndroidCache
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<<b58702a0f594f409c0d20fd497395fde>>
* @generated SignedSource<<b8e00d3fd408ae13a04e5ffafffa9036>>
*/

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

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

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

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

@DoNotStrip @JvmStatic public external fun fixMappingOfEventPrioritiesBetweenFabricAndReact(): 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<<834b0e9533cbc775a1c12b86140d718d>>
* @generated SignedSource<<28f7a8ffb0692a5e6e2f59d858801f94>>
*/

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

override fun enableVirtualViewContainerStateExperimental(): Boolean = false

override fun enableVirtualizedListMaintainVisibleContentPosition(): Boolean = false

override fun fixBorderlessRippleAndroid(): Boolean = false

override fun fixMappingOfEventPrioritiesBetweenFabricAndReact(): 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<<15c65d4497fd9f36f8902efb2812b3b2>>
* @generated SignedSource<<707cc7dc09ae7c9f186cbb69ac53d87f>>
*/

/**
Expand Down Expand Up @@ -86,6 +86,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var enableViewRecyclingForTextCache: Boolean? = null
private var enableViewRecyclingForViewCache: Boolean? = null
private var enableVirtualViewContainerStateExperimentalCache: Boolean? = null
private var enableVirtualizedListMaintainVisibleContentPositionCache: Boolean? = null
private var fixBorderlessRippleAndroidCache: Boolean? = null
private var fixMappingOfEventPrioritiesBetweenFabricAndReactCache: Boolean? = null
private var fixMultilineContentJumpAndroidCache: Boolean? = null
Expand Down Expand Up @@ -749,6 +750,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

override fun fixBorderlessRippleAndroid(): Boolean {
var cached = fixBorderlessRippleAndroidCache
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<<89f683cb28a7d1ef52c86faa96f1107c>>
* @generated SignedSource<<fb4962489170f46b0b856fd44496a133>>
*/

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

@DoNotStrip public fun enableVirtualViewContainerStateExperimental(): Boolean

@DoNotStrip public fun enableVirtualizedListMaintainVisibleContentPosition(): Boolean

@DoNotStrip public fun fixBorderlessRippleAndroid(): Boolean

@DoNotStrip public fun fixMappingOfEventPrioritiesBetweenFabricAndReact(): 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<<407c8e5915db07bb6cc2b9ba4449750a>>
* @generated SignedSource<<740b3a4ce4d4872f7b8e5db7bc34df2c>>
*/

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

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

bool fixBorderlessRippleAndroid() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("fixBorderlessRippleAndroid");
Expand Down Expand Up @@ -977,6 +983,11 @@ bool JReactNativeFeatureFlagsCxxInterop::enableVirtualViewContainerStateExperime
return ReactNativeFeatureFlags::enableVirtualViewContainerStateExperimental();
}

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

bool JReactNativeFeatureFlagsCxxInterop::fixBorderlessRippleAndroid(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::fixBorderlessRippleAndroid();
Expand Down Expand Up @@ -1404,6 +1415,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"enableVirtualViewContainerStateExperimental",
JReactNativeFeatureFlagsCxxInterop::enableVirtualViewContainerStateExperimental),
makeNativeMethod(
"enableVirtualizedListMaintainVisibleContentPosition",
JReactNativeFeatureFlagsCxxInterop::enableVirtualizedListMaintainVisibleContentPosition),
makeNativeMethod(
"fixBorderlessRippleAndroid",
JReactNativeFeatureFlagsCxxInterop::fixBorderlessRippleAndroid),
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<<7cb5d49e9124d56b3e242e2023db8649>>
* @generated SignedSource<<2508a344dfff3b40f3ed99574ebcf703>>
*/

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

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

static bool fixBorderlessRippleAndroid(
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<<cdff9d8521366a5ab71b9cacd2415c83>>
* @generated SignedSource<<ebb5875622d59e20f7a01c97ddda3ca3>>
*/

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

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

bool ReactNativeFeatureFlags::fixBorderlessRippleAndroid() {
return getAccessor().fixBorderlessRippleAndroid();
}
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<<2ddd9296377ea4c1fd9c84883fbde049>>
* @generated SignedSource<<3a0e51e5d4982dfca714485e681d9110>>
*/

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

/**
* Enables scroll-position stability improvements for variable-height VirtualizedLists, including spacer-length stabilization, improved native maintainVisibleContentPosition anchoring, and default anchoring.
*/
RN_EXPORT static bool enableVirtualizedListMaintainVisibleContentPosition();

/**
* Prevents a borderless ripple feedback underlay from projecting the entire view background on Android, which could hide the background and ripple.
*/
Expand Down
Loading
Loading