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<<8af0aea8bbf4cffaad7d312032bef0e4>>
* @generated SignedSource<<4f9777b3b50f714214f9f0f86d5176f1>>
*/

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

/**
* Do not emit touchcancel from Android ScrollView, instead native topScroll event will trigger responder transfer and terminate in RN renderer.
*/
@JvmStatic
public fun shouldTriggerResponderTransferOnScrollAndroid(): Boolean = accessor.shouldTriggerResponderTransferOnScrollAndroid()

/**
* Skip activity identity assertion in ReactHostImpl::onHostPause()
*/
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<<5c2aa1e15e7fbe129b8f774d2dc7be70>>
* @generated SignedSource<<7e45b713bab183402e93ee058ea7cb36>>
*/

/**
Expand Down Expand Up @@ -79,6 +79,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var preparedTextCacheSizeCache: Double? = null
private var preventShadowTreeCommitExhaustionCache: Boolean? = null
private var shouldPressibilityUseW3CPointerEventsForHoverCache: Boolean? = null
private var shouldTriggerResponderTransferOnScrollAndroidCache: Boolean? = null
private var skipActivityIdentityAssertionOnHostPauseCache: Boolean? = null
private var sweepActiveTouchOnChildNativeGesturesAndroidCache: Boolean? = null
private var traceTurboModulePromiseRejectionsOnAndroidCache: Boolean? = null
Expand Down Expand Up @@ -629,6 +630,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

override fun skipActivityIdentityAssertionOnHostPause(): Boolean {
var cached = skipActivityIdentityAssertionOnHostPauseCache
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<<0bd8796f4580322a78690ec4469c07ce>>
* @generated SignedSource<<a8097e06e4ad0e329bd81fd6d23c031a>>
*/

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

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

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

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

@DoNotStrip @JvmStatic public external fun sweepActiveTouchOnChildNativeGesturesAndroid(): 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<<7c7796cbe2722f0f6e5b2cc4ed43a0d5>>
* @generated SignedSource<<c2e602217d9d88c23e958c8b73f22e5c>>
*/

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

override fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean = false

override fun shouldTriggerResponderTransferOnScrollAndroid(): Boolean = false

override fun skipActivityIdentityAssertionOnHostPause(): Boolean = false

override fun sweepActiveTouchOnChildNativeGesturesAndroid(): 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<<f3420de2307aab53b885fa491183d84b>>
* @generated SignedSource<<f88ede5a21467165ef04b5d16d869d1f>>
*/

/**
Expand Down Expand Up @@ -83,6 +83,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var preparedTextCacheSizeCache: Double? = null
private var preventShadowTreeCommitExhaustionCache: Boolean? = null
private var shouldPressibilityUseW3CPointerEventsForHoverCache: Boolean? = null
private var shouldTriggerResponderTransferOnScrollAndroidCache: Boolean? = null
private var skipActivityIdentityAssertionOnHostPauseCache: Boolean? = null
private var sweepActiveTouchOnChildNativeGesturesAndroidCache: Boolean? = null
private var traceTurboModulePromiseRejectionsOnAndroidCache: Boolean? = null
Expand Down Expand Up @@ -692,6 +693,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

override fun skipActivityIdentityAssertionOnHostPause(): Boolean {
var cached = skipActivityIdentityAssertionOnHostPauseCache
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<<d4370bcde97d3c2b0b8d2a77e42a6031>>
* @generated SignedSource<<aa0e9e5830b13c4b290dcae42b757a3a>>
*/

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

@DoNotStrip public fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean

@DoNotStrip public fun shouldTriggerResponderTransferOnScrollAndroid(): Boolean

@DoNotStrip public fun skipActivityIdentityAssertionOnHostPause(): Boolean

@DoNotStrip public fun sweepActiveTouchOnChildNativeGesturesAndroid(): 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<<740fec2589997816f17778f57b1d4abf>>
* @generated SignedSource<<5cf0077264f7ceca6617dbe20bcc122f>>
*/

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

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

bool skipActivityIdentityAssertionOnHostPause() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("skipActivityIdentityAssertionOnHostPause");
Expand Down Expand Up @@ -800,6 +806,11 @@ bool JReactNativeFeatureFlagsCxxInterop::shouldPressibilityUseW3CPointerEventsFo
return ReactNativeFeatureFlags::shouldPressibilityUseW3CPointerEventsForHover();
}

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

bool JReactNativeFeatureFlagsCxxInterop::skipActivityIdentityAssertionOnHostPause(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::skipActivityIdentityAssertionOnHostPause();
Expand Down Expand Up @@ -1098,6 +1109,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"shouldPressibilityUseW3CPointerEventsForHover",
JReactNativeFeatureFlagsCxxInterop::shouldPressibilityUseW3CPointerEventsForHover),
makeNativeMethod(
"shouldTriggerResponderTransferOnScrollAndroid",
JReactNativeFeatureFlagsCxxInterop::shouldTriggerResponderTransferOnScrollAndroid),
makeNativeMethod(
"skipActivityIdentityAssertionOnHostPause",
JReactNativeFeatureFlagsCxxInterop::skipActivityIdentityAssertionOnHostPause),
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<<2d4ccbeed5ffafd40715357ff98d83b1>>
* @generated SignedSource<<04929fb70beb00c1f690bdb11703b322>>
*/

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

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

static bool skipActivityIdentityAssertionOnHostPause(
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<<287689f62d05f2d27c146856b7857010>>
* @generated SignedSource<<bbe47fc20b10610f0ef14e2d35406145>>
*/

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

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

bool ReactNativeFeatureFlags::skipActivityIdentityAssertionOnHostPause() {
return getAccessor().skipActivityIdentityAssertionOnHostPause();
}
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<<ce76bbae9b797c6c1c9a1ceb1350f370>>
* @generated SignedSource<<72899a3f546792dd4c868c561f55c10f>>
*/

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

/**
* Do not emit touchcancel from Android ScrollView, instead native topScroll event will trigger responder transfer and terminate in RN renderer.
*/
RN_EXPORT static bool shouldTriggerResponderTransferOnScrollAndroid();

/**
* Skip activity identity assertion in ReactHostImpl::onHostPause()
*/
Expand Down
Loading
Loading