Skip to content
Closed
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<<99a7d3e814f4b037ed4496b6eee4f264>>
* @generated SignedSource<<45d368406f020ca101d9b87c7e2527b1>>
*/

/**
Expand Down Expand Up @@ -444,6 +444,18 @@ public object ReactNativeFeatureFlags {
@JvmStatic
public fun preventShadowTreeCommitExhaustion(): Boolean = accessor.preventShadowTreeCommitExhaustion()

/**
* Use the redesigned RedBox error overlay on Android, styled to match the LogBox visual language.
*/
@JvmStatic
public fun redBoxV2Android(): Boolean = accessor.redBoxV2Android()

/**
* Use the redesigned RedBox error overlay on iOS, styled to match the LogBox visual language.
*/
@JvmStatic
public fun redBoxV2IOS(): Boolean = accessor.redBoxV2IOS()

/**
* Function used to enable / disable Pressibility from using W3C Pointer Events for its hover callbacks
*/
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<<c2f867597d97dc97c8ded5fbd258c13c>>
* @generated SignedSource<<5bb0640a99befcfcb3a197a5a074513f>>
*/

/**
Expand Down Expand Up @@ -89,6 +89,8 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var perfMonitorV2EnabledCache: Boolean? = null
private var preparedTextCacheSizeCache: Double? = null
private var preventShadowTreeCommitExhaustionCache: Boolean? = null
private var redBoxV2AndroidCache: Boolean? = null
private var redBoxV2IOSCache: Boolean? = null
private var shouldPressibilityUseW3CPointerEventsForHoverCache: Boolean? = null
private var shouldTriggerResponderTransferOnScrollAndroidCache: Boolean? = null
private var skipActivityIdentityAssertionOnHostPauseCache: Boolean? = null
Expand Down Expand Up @@ -731,6 +733,24 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

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

override fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean {
var cached = shouldPressibilityUseW3CPointerEventsForHoverCache
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<<8667d7237cea82bb5978cb19582d59c0>>
* @generated SignedSource<<23c20167823efb1df8209cdffa7a23d0>>
*/

/**
Expand Down Expand Up @@ -166,6 +166,10 @@ public object ReactNativeFeatureFlagsCxxInterop {

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

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

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

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

@DoNotStrip @JvmStatic public external fun shouldTriggerResponderTransferOnScrollAndroid(): 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<<17abc72a4045c5695818f254be1783b5>>
* @generated SignedSource<<b90bd36b587f5737a3348a3785d2757e>>
*/

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

override fun preventShadowTreeCommitExhaustion(): Boolean = false

override fun redBoxV2Android(): Boolean = false

override fun redBoxV2IOS(): Boolean = false

override fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean = false

override fun shouldTriggerResponderTransferOnScrollAndroid(): 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<<77ba6c5db120016e6e1f8af195ab3690>>
* @generated SignedSource<<7d3853cb7e319830aab97792e1520ff7>>
*/

/**
Expand Down Expand Up @@ -93,6 +93,8 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var perfMonitorV2EnabledCache: Boolean? = null
private var preparedTextCacheSizeCache: Double? = null
private var preventShadowTreeCommitExhaustionCache: Boolean? = null
private var redBoxV2AndroidCache: Boolean? = null
private var redBoxV2IOSCache: Boolean? = null
private var shouldPressibilityUseW3CPointerEventsForHoverCache: Boolean? = null
private var shouldTriggerResponderTransferOnScrollAndroidCache: Boolean? = null
private var skipActivityIdentityAssertionOnHostPauseCache: Boolean? = null
Expand Down Expand Up @@ -804,6 +806,26 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

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

override fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean {
var cached = shouldPressibilityUseW3CPointerEventsForHoverCache
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<<8496c138ce5493df84149940df0de944>>
* @generated SignedSource<<dcd57ab69856d49cb56ae23b4bf256dc>>
*/

/**
Expand Down Expand Up @@ -161,6 +161,10 @@ public interface ReactNativeFeatureFlagsProvider {

@DoNotStrip public fun preventShadowTreeCommitExhaustion(): Boolean

@DoNotStrip public fun redBoxV2Android(): Boolean

@DoNotStrip public fun redBoxV2IOS(): Boolean

@DoNotStrip public fun shouldPressibilityUseW3CPointerEventsForHover(): Boolean

@DoNotStrip public fun shouldTriggerResponderTransferOnScrollAndroid(): 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<<5bac13bb6faeffdd3c5eca800f25b96a>>
* @generated SignedSource<<eb382be7051566f63489b990a8d811f4>>
*/

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

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

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

bool shouldPressibilityUseW3CPointerEventsForHover() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("shouldPressibilityUseW3CPointerEventsForHover");
Expand Down Expand Up @@ -922,6 +934,16 @@ bool JReactNativeFeatureFlagsCxxInterop::preventShadowTreeCommitExhaustion(
return ReactNativeFeatureFlags::preventShadowTreeCommitExhaustion();
}

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

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

bool JReactNativeFeatureFlagsCxxInterop::shouldPressibilityUseW3CPointerEventsForHover(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::shouldPressibilityUseW3CPointerEventsForHover();
Expand Down Expand Up @@ -1260,6 +1282,12 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"preventShadowTreeCommitExhaustion",
JReactNativeFeatureFlagsCxxInterop::preventShadowTreeCommitExhaustion),
makeNativeMethod(
"redBoxV2Android",
JReactNativeFeatureFlagsCxxInterop::redBoxV2Android),
makeNativeMethod(
"redBoxV2IOS",
JReactNativeFeatureFlagsCxxInterop::redBoxV2IOS),
makeNativeMethod(
"shouldPressibilityUseW3CPointerEventsForHover",
JReactNativeFeatureFlagsCxxInterop::shouldPressibilityUseW3CPointerEventsForHover),
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<<ad45dce1fafd3bd29078bd54e4206d9f>>
* @generated SignedSource<<c565fa1c5c2ca5fb9e0f23f103d27b43>>
*/

/**
Expand Down Expand Up @@ -237,6 +237,12 @@ class JReactNativeFeatureFlagsCxxInterop
static bool preventShadowTreeCommitExhaustion(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop>);

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

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

static bool shouldPressibilityUseW3CPointerEventsForHover(
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<<b229243317998e64843f285f86af161c>>
* @generated SignedSource<<211e6d3081b5fc5e5b30e87f04970e95>>
*/

/**
Expand Down Expand Up @@ -302,6 +302,14 @@ bool ReactNativeFeatureFlags::preventShadowTreeCommitExhaustion() {
return getAccessor().preventShadowTreeCommitExhaustion();
}

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

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

bool ReactNativeFeatureFlags::shouldPressibilityUseW3CPointerEventsForHover() {
return getAccessor().shouldPressibilityUseW3CPointerEventsForHover();
}
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<<86b3267ffa68e0f68280957aa54d5041>>
* @generated SignedSource<<4adf6fb186eeb45234b8c1196e9a92c9>>
*/

/**
Expand Down Expand Up @@ -384,6 +384,16 @@ class ReactNativeFeatureFlags {
*/
RN_EXPORT static bool preventShadowTreeCommitExhaustion();

/**
* Use the redesigned RedBox error overlay on Android, styled to match the LogBox visual language.
*/
RN_EXPORT static bool redBoxV2Android();

/**
* Use the redesigned RedBox error overlay on iOS, styled to match the LogBox visual language.
*/
RN_EXPORT static bool redBoxV2IOS();

/**
* Function used to enable / disable Pressibility from using W3C Pointer Events for its hover callbacks
*/
Expand Down
Loading
Loading