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<<f67a9635d8fadd31a82d32f8dac00ba0>>
* @generated SignedSource<<a2fdcb662fc0178c4a16cc5bf23fce17>>
*/

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

/**
* Enables gracefuly failure when an unregistered component is rendered in Android.
*/
@JvmStatic
public fun enableGracefulUnregisteredComponentFailureAndroid(): Boolean = accessor.enableGracefulUnregisteredComponentFailureAndroid()

/**
* iOS Views will clip to their padding box vs border box
*/
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<<62a722030e9166b231e5368f193f6f0c>>
* @generated SignedSource<<e0f3b9a2aa093139da1692e205ef796e>>
*/

/**
Expand Down Expand Up @@ -39,6 +39,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var enableFixForParentTagDuringReparentingCache: Boolean? = null
private var enableFontScaleChangesUpdatingLayoutCache: Boolean? = null
private var enableIOSTextBaselineOffsetPerLineCache: Boolean? = null
private var enableGracefulUnregisteredComponentFailureAndroidCache: Boolean? = null
private var enableIOSViewClipToPaddingBoxCache: Boolean? = null
private var enableIntersectionObserverEventLoopIntegrationCache: Boolean? = null
private var enableLayoutAnimationsOnAndroidCache: Boolean? = null
Expand Down Expand Up @@ -244,6 +245,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

override fun enableIOSViewClipToPaddingBox(): Boolean {
var cached = enableIOSViewClipToPaddingBoxCache
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<<39d78493b17f7abfb4220d25e663ae55>>
* @generated SignedSource<<ba28175a48616955b57a2d9608b75217>>
*/

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

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

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

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

@DoNotStrip @JvmStatic public external fun enableIntersectionObserverEventLoopIntegration(): 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<<830cbb41b3886b715b57c2f0c29f4623>>
* @generated SignedSource<<1b936df7f2b86affb273a0054d9938c4>>
*/

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

override fun enableIOSTextBaselineOffsetPerLine(): Boolean = false

override fun enableGracefulUnregisteredComponentFailureAndroid(): Boolean = false

override fun enableIOSViewClipToPaddingBox(): Boolean = false

override fun enableIntersectionObserverEventLoopIntegration(): Boolean = true
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<<b755121b5c8048c7733825ceff2a4773>>
* @generated SignedSource<<646cf101688413ddb4677526742d6677>>
*/

/**
Expand Down Expand Up @@ -43,6 +43,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var enableFixForParentTagDuringReparentingCache: Boolean? = null
private var enableFontScaleChangesUpdatingLayoutCache: Boolean? = null
private var enableIOSTextBaselineOffsetPerLineCache: Boolean? = null
private var enableGracefulUnregisteredComponentFailureAndroidCache: Boolean? = null
private var enableIOSViewClipToPaddingBoxCache: Boolean? = null
private var enableIntersectionObserverEventLoopIntegrationCache: Boolean? = null
private var enableLayoutAnimationsOnAndroidCache: Boolean? = null
Expand Down Expand Up @@ -267,6 +268,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

override fun enableIOSViewClipToPaddingBox(): Boolean {
var cached = enableIOSViewClipToPaddingBoxCache
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<<25acda9d60691c0ca5ea4776bfae594a>>
* @generated SignedSource<<7848d98b460497d1c322158f89cec7b4>>
*/

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

@DoNotStrip public fun enableIOSTextBaselineOffsetPerLine(): Boolean

@DoNotStrip public fun enableGracefulUnregisteredComponentFailureAndroid(): Boolean

@DoNotStrip public fun enableIOSViewClipToPaddingBox(): Boolean

@DoNotStrip public fun enableIntersectionObserverEventLoopIntegration(): 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<<ddb0b0066cae098c56aa827e5ac3072c>>
* @generated SignedSource<<c1a0bd5e9088fd084a9a7f253b76de14>>
*/

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

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

bool enableIOSViewClipToPaddingBox() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("enableIOSViewClipToPaddingBox");
Expand Down Expand Up @@ -450,6 +456,11 @@ bool JReactNativeFeatureFlagsCxxInterop::enableIOSTextBaselineOffsetPerLine(
return ReactNativeFeatureFlags::enableIOSTextBaselineOffsetPerLine();
}

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

bool JReactNativeFeatureFlagsCxxInterop::enableIOSViewClipToPaddingBox(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::enableIOSViewClipToPaddingBox();
Expand Down Expand Up @@ -703,6 +714,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"enableIOSTextBaselineOffsetPerLine",
JReactNativeFeatureFlagsCxxInterop::enableIOSTextBaselineOffsetPerLine),
makeNativeMethod(
"enableGracefulUnregisteredComponentFailureAndroid",
JReactNativeFeatureFlagsCxxInterop::enableGracefulUnregisteredComponentFailureAndroid),
makeNativeMethod(
"enableIOSViewClipToPaddingBox",
JReactNativeFeatureFlagsCxxInterop::enableIOSViewClipToPaddingBox),
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<<3a00be0b706f3513e1aca741c55a0747>>
* @generated SignedSource<<edcb0dafbb7740bfdb417f3fd78250fb>>
*/

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

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

static bool enableIOSViewClipToPaddingBox(
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<<05405c3bb41e2511ac66792eb641db5e>>
* @generated SignedSource<<5415b718e13b2b4e1daee3bb6faba776>>
*/

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

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

bool ReactNativeFeatureFlags::enableIOSViewClipToPaddingBox() {
return getAccessor().enableIOSViewClipToPaddingBox();
}
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<<f28e23028234cda83f67e0386fdd9f32>>
* @generated SignedSource<<cf48df16a494b69db66bdfc5eff84dd9>>
*/

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

/**
* Enables gracefuly failure when an unregistered component is rendered in Android.
*/
RN_EXPORT static bool enableGracefulUnregisteredComponentFailureAndroid();

/**
* iOS Views will clip to their padding box vs border box
*/
Expand Down
Loading
Loading