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<<b7ef80c2c39c734ae511fe6457b89ce7>>
* @generated SignedSource<<de19deb8eaa373fc2048f5a9453674b7>>
*/

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

/**
* When enabled, ReactNativeElement and ReadOnlyText expose the public EventTarget API (addEventListener, removeEventListener, dispatchEvent). When disabled, those methods are removed from those final classes.
*/
@JvmStatic
public fun enableImperativeEvents(): Boolean = accessor.enableImperativeEvents()

/**
* Enable ref.focus() and ref.blur() for all views, not just TextInput.
*/
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<<68aefd0293540d56f57e8badc0de04c8>>
* @generated SignedSource<<a1c52a57a980eaab23d92416340a6734>>
*/

/**
Expand Down Expand Up @@ -51,6 +51,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var enableImagePrefetchingAndroidCache: Boolean? = null
private var enableImageTransparentTintColorCache: Boolean? = null
private var enableImmediateUpdateModeForContentOffsetChangesCache: Boolean? = null
private var enableImperativeEventsCache: Boolean? = null
private var enableImperativeFocusCache: Boolean? = null
private var enableInteropViewManagerClassLookUpOptimizationIOSCache: Boolean? = null
private var enableIntersectionObserverByDefaultCache: Boolean? = null
Expand Down Expand Up @@ -386,6 +387,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

override fun enableImperativeFocus(): Boolean {
var cached = enableImperativeFocusCache
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<<247f721796621af8615014477518bcd9>>
* @generated SignedSource<<8a0d1f134b175ada7550499896c09203>>
*/

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

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

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

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

@DoNotStrip @JvmStatic public external fun enableInteropViewManagerClassLookUpOptimizationIOS(): 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<<33071257f9c96a8664c9af429e387061>>
* @generated SignedSource<<891abee69433c105d062b45ed357fd5c>>
*/

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

override fun enableImmediateUpdateModeForContentOffsetChanges(): Boolean = false

override fun enableImperativeEvents(): Boolean = false

override fun enableImperativeFocus(): Boolean = false

override fun enableInteropViewManagerClassLookUpOptimizationIOS(): 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<<f218220c66b8367211cae49adba46afc>>
* @generated SignedSource<<4c62625780d9f767714f8481c7496342>>
*/

/**
Expand Down Expand Up @@ -55,6 +55,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var enableImagePrefetchingAndroidCache: Boolean? = null
private var enableImageTransparentTintColorCache: Boolean? = null
private var enableImmediateUpdateModeForContentOffsetChangesCache: Boolean? = null
private var enableImperativeEventsCache: Boolean? = null
private var enableImperativeFocusCache: Boolean? = null
private var enableInteropViewManagerClassLookUpOptimizationIOSCache: Boolean? = null
private var enableIntersectionObserverByDefaultCache: Boolean? = null
Expand Down Expand Up @@ -421,6 +422,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

override fun enableImperativeFocus(): Boolean {
var cached = enableImperativeFocusCache
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<<22ab94c6b0cc8f7ee39d546d9b93540a>>
* @generated SignedSource<<843b2fa7e358dd73c9db083e42b93be6>>
*/

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

override fun enableAccessibilityOrder(): Boolean = true

override fun enableImperativeEvents(): Boolean = true

override fun enableIntersectionObserverByDefault(): Boolean = true

override fun enableSwiftUIBasedFilters(): 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<<915bf918212b9898319de61d4cadaa13>>
* @generated SignedSource<<e991f910f4be27f532c6b81c436bcdf1>>
*/

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

@DoNotStrip public fun enableImmediateUpdateModeForContentOffsetChanges(): Boolean

@DoNotStrip public fun enableImperativeEvents(): Boolean

@DoNotStrip public fun enableImperativeFocus(): Boolean

@DoNotStrip public fun enableInteropViewManagerClassLookUpOptimizationIOS(): 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<<177c5cc7f6e970a2d4454c32d7f777ef>>
* @generated SignedSource<<dc98fadf7aac306d7cdb4f5ab511f690>>
*/

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

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

bool enableImperativeFocus() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("enableImperativeFocus");
Expand Down Expand Up @@ -714,6 +720,11 @@ bool JReactNativeFeatureFlagsCxxInterop::enableImmediateUpdateModeForContentOffs
return ReactNativeFeatureFlags::enableImmediateUpdateModeForContentOffsetChanges();
}

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

bool JReactNativeFeatureFlagsCxxInterop::enableImperativeFocus(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::enableImperativeFocus();
Expand Down Expand Up @@ -1113,6 +1124,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"enableImmediateUpdateModeForContentOffsetChanges",
JReactNativeFeatureFlagsCxxInterop::enableImmediateUpdateModeForContentOffsetChanges),
makeNativeMethod(
"enableImperativeEvents",
JReactNativeFeatureFlagsCxxInterop::enableImperativeEvents),
makeNativeMethod(
"enableImperativeFocus",
JReactNativeFeatureFlagsCxxInterop::enableImperativeFocus),
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<<eab10e240a16c8ef3f659bd8ded290f0>>
* @generated SignedSource<<c17b71e1b754ff1773bb370681de06e4>>
*/

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

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

static bool enableImperativeFocus(
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<<7b726d7483bb35062b79e582323f0d7e>>
* @generated SignedSource<<023b0be9315450130aac118c65ac53eb>>
*/

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

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

bool ReactNativeFeatureFlags::enableImperativeFocus() {
return getAccessor().enableImperativeFocus();
}
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<<1e9009301b79f977132c4fa5599aebdd>>
* @generated SignedSource<<0537b7ab2bf0250ddd0cfaec6c52111b>>
*/

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

/**
* When enabled, ReactNativeElement and ReadOnlyText expose the public EventTarget API (addEventListener, removeEventListener, dispatchEvent). When disabled, those methods are removed from those final classes.
*/
RN_EXPORT static bool enableImperativeEvents();

/**
* Enable ref.focus() and ref.blur() for all views, not just TextInput.
*/
Expand Down
Loading
Loading