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<<eb70fd41bc36f1a49849e29bea081007>>
* @generated SignedSource<<1e2cf81bf4354a7e3d9d09384d813cfc>>
*/

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

/**
* Fixes #56595 by moving the autoFocus from didMoveToWindow to viewDidAppear
*/
@JvmStatic
public fun enableIOSExperimentalAutoFocusImplementation(): Boolean = accessor.enableIOSExperimentalAutoFocusImplementation()

/**
* Applies base offset for each line of text separately on iOS.
*/
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<<f79ca61a0da053a1661eca4d3a35b081>>
* @generated SignedSource<<8dd2a1c47c059810961eb66b13b18dc1>>
*/

/**
Expand Down Expand Up @@ -46,6 +46,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var enableFabricLogsCache: Boolean? = null
private var enableFabricRendererCache: Boolean? = null
private var enableFontScaleChangesUpdatingLayoutCache: Boolean? = null
private var enableIOSExperimentalAutoFocusImplementationCache: Boolean? = null
private var enableIOSTextBaselineOffsetPerLineCache: Boolean? = null
private var enableIOSViewClipToPaddingBoxCache: Boolean? = null
private var enableImagePrefetchingAndroidCache: Boolean? = null
Expand Down Expand Up @@ -346,6 +347,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

override fun enableIOSTextBaselineOffsetPerLine(): Boolean {
var cached = enableIOSTextBaselineOffsetPerLineCache
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<<62d1f0fcdf8e3165480da12575d62826>>
* @generated SignedSource<<a6ccb3bb68e8b300fdabf085e7ea6979>>
*/

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

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

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

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

@DoNotStrip @JvmStatic public external fun enableIOSViewClipToPaddingBox(): 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<<84ac5b80585f9185c879c81822718d86>>
* @generated SignedSource<<27361d399f26a6f7462a82f9fbfd5d48>>
*/

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

override fun enableFontScaleChangesUpdatingLayout(): Boolean = true

override fun enableIOSExperimentalAutoFocusImplementation(): Boolean = false

override fun enableIOSTextBaselineOffsetPerLine(): Boolean = false

override fun enableIOSViewClipToPaddingBox(): 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<<3574e23fe8f846e408964af26cf0dd4c>>
* @generated SignedSource<<eccc96e3e69fa903211ef5dafb4027ea>>
*/

/**
Expand Down Expand Up @@ -50,6 +50,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var enableFabricLogsCache: Boolean? = null
private var enableFabricRendererCache: Boolean? = null
private var enableFontScaleChangesUpdatingLayoutCache: Boolean? = null
private var enableIOSExperimentalAutoFocusImplementationCache: Boolean? = null
private var enableIOSTextBaselineOffsetPerLineCache: Boolean? = null
private var enableIOSViewClipToPaddingBoxCache: Boolean? = null
private var enableImagePrefetchingAndroidCache: Boolean? = null
Expand Down Expand Up @@ -376,6 +377,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

override fun enableIOSTextBaselineOffsetPerLine(): Boolean {
var cached = enableIOSTextBaselineOffsetPerLineCache
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<<187ac62197545fbce9d537527b4aed3b>>
* @generated SignedSource<<d6ba6e0ef20d07717948f7bfdacb9c17>>
*/

/**
Expand All @@ -27,6 +27,8 @@ public open class ReactNativeFeatureFlagsOverrides_RNOSS_Experimental_Android :

override fun enableAccessibilityOrder(): Boolean = true

override fun enableIOSExperimentalAutoFocusImplementation(): Boolean = true

override fun enableSwiftUIBasedFilters(): Boolean = true

override fun preventShadowTreeCommitExhaustion(): 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<<9222fd90d191a91893e2c58770d83259>>
* @generated SignedSource<<b223e1cfe403041057d018e267e3bf7f>>
*/

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

@DoNotStrip public fun enableFontScaleChangesUpdatingLayout(): Boolean

@DoNotStrip public fun enableIOSExperimentalAutoFocusImplementation(): Boolean

@DoNotStrip public fun enableIOSTextBaselineOffsetPerLine(): Boolean

@DoNotStrip public fun enableIOSViewClipToPaddingBox(): 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<<e8cf371a99a72250ea1b0104dc7f8254>>
* @generated SignedSource<<b8b2b6bd1dbc251e292e85d54deec9d7>>
*/

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

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

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

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

bool JReactNativeFeatureFlagsCxxInterop::enableIOSTextBaselineOffsetPerLine(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::enableIOSTextBaselineOffsetPerLine();
Expand Down Expand Up @@ -1153,6 +1164,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"enableFontScaleChangesUpdatingLayout",
JReactNativeFeatureFlagsCxxInterop::enableFontScaleChangesUpdatingLayout),
makeNativeMethod(
"enableIOSExperimentalAutoFocusImplementation",
JReactNativeFeatureFlagsCxxInterop::enableIOSExperimentalAutoFocusImplementation),
makeNativeMethod(
"enableIOSTextBaselineOffsetPerLine",
JReactNativeFeatureFlagsCxxInterop::enableIOSTextBaselineOffsetPerLine),
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<<773741594e911047dac28904e9fc9544>>
* @generated SignedSource<<0d42119f721e3240e5d140b865547e18>>
*/

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

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

static bool enableIOSTextBaselineOffsetPerLine(
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<<6a15a6444767342acf4da0c0c8aa6208>>
* @generated SignedSource<<11c0b22fb3739bdbb269084214263fe3>>
*/

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

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

bool ReactNativeFeatureFlags::enableIOSTextBaselineOffsetPerLine() {
return getAccessor().enableIOSTextBaselineOffsetPerLine();
}
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<<62d1840f9a39eaceaa800542b7351a41>>
* @generated SignedSource<<48115b5bbcdf8122a252d6c6c16e9c81>>
*/

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

/**
* Fixes #56595 by moving the autoFocus from didMoveToWindow to viewDidAppear
*/
RN_EXPORT static bool enableIOSExperimentalAutoFocusImplementation();

/**
* Applies base offset for each line of text separately on iOS.
*/
Expand Down
Loading
Loading