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<<99a7d3e814f4b037ed4496b6eee4f264>>
* @generated SignedSource<<ec90d5adafcfcc96eaf00148f0ba1991>>
*/

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

/**
* When enabled, uses optimized platform-specific paths to apply animated props synchronously. On Android, this uses a batched int/double buffer protocol with a single JNI call. On iOS, this passes AnimatedProps directly through the delegate chain and applies them via cloneProps, avoiding the folly::dynamic round-trip.
*/
@JvmStatic
public fun optimizedAnimatedPropUpdates(): Boolean = accessor.optimizedAnimatedPropUpdates()

/**
* Override props at mounting with synchronously mounted (i.e. direct manipulation) props from Native Animated.
*/
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<<9f7ea26f2a79cb69ec00b8ec763b605e>>
*/

/**
Expand Down Expand Up @@ -84,6 +84,7 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
private var fuseboxScreenshotCaptureEnabledCache: Boolean? = null
private var hideOffscreenVirtualViewsOnIOSCache: Boolean? = null
private var optimizedAnimatedPropUpdatesCache: Boolean? = null
private var overrideBySynchronousMountPropsAtMountingAndroidCache: Boolean? = null
private var perfIssuesEnabledCache: Boolean? = null
private var perfMonitorV2EnabledCache: Boolean? = null
Expand Down Expand Up @@ -686,6 +687,15 @@ internal class ReactNativeFeatureFlagsCxxAccessor : ReactNativeFeatureFlagsAcces
return cached
}

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

override fun overrideBySynchronousMountPropsAtMountingAndroid(): Boolean {
var cached = overrideBySynchronousMountPropsAtMountingAndroidCache
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<<615682a04f2be0b548235ca172faa244>>
*/

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

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

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

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

@DoNotStrip @JvmStatic public external fun perfIssuesEnabled(): 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<<7b05d0055367981a6c6eb6cd79ef93a6>>
*/

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

override fun hideOffscreenVirtualViewsOnIOS(): Boolean = false

override fun optimizedAnimatedPropUpdates(): Boolean = false

override fun overrideBySynchronousMountPropsAtMountingAndroid(): Boolean = false

override fun perfIssuesEnabled(): 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<<9b1e9427538a12e34afe0f045f9adc94>>
*/

/**
Expand Down Expand Up @@ -88,6 +88,7 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
private var fuseboxNetworkInspectionEnabledCache: Boolean? = null
private var fuseboxScreenshotCaptureEnabledCache: Boolean? = null
private var hideOffscreenVirtualViewsOnIOSCache: Boolean? = null
private var optimizedAnimatedPropUpdatesCache: Boolean? = null
private var overrideBySynchronousMountPropsAtMountingAndroidCache: Boolean? = null
private var perfIssuesEnabledCache: Boolean? = null
private var perfMonitorV2EnabledCache: Boolean? = null
Expand Down Expand Up @@ -754,6 +755,16 @@ internal class ReactNativeFeatureFlagsLocalAccessor : ReactNativeFeatureFlagsAcc
return cached
}

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

override fun overrideBySynchronousMountPropsAtMountingAndroid(): Boolean {
var cached = overrideBySynchronousMountPropsAtMountingAndroidCache
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<<6aacf1c52ec159d7084dc106da017856>>
*/

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

@DoNotStrip public fun hideOffscreenVirtualViewsOnIOS(): Boolean

@DoNotStrip public fun optimizedAnimatedPropUpdates(): Boolean

@DoNotStrip public fun overrideBySynchronousMountPropsAtMountingAndroid(): Boolean

@DoNotStrip public fun perfIssuesEnabled(): 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<<5cafc732183ce679bfc8ebeacccdffb5>>
*/

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

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

bool overrideBySynchronousMountPropsAtMountingAndroid() override {
static const auto method =
getReactNativeFeatureFlagsProviderJavaClass()->getMethod<jboolean()>("overrideBySynchronousMountPropsAtMountingAndroid");
Expand Down Expand Up @@ -897,6 +903,11 @@ bool JReactNativeFeatureFlagsCxxInterop::hideOffscreenVirtualViewsOnIOS(
return ReactNativeFeatureFlags::hideOffscreenVirtualViewsOnIOS();
}

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

bool JReactNativeFeatureFlagsCxxInterop::overrideBySynchronousMountPropsAtMountingAndroid(
facebook::jni::alias_ref<JReactNativeFeatureFlagsCxxInterop> /*unused*/) {
return ReactNativeFeatureFlags::overrideBySynchronousMountPropsAtMountingAndroid();
Expand Down Expand Up @@ -1245,6 +1256,9 @@ void JReactNativeFeatureFlagsCxxInterop::registerNatives() {
makeNativeMethod(
"hideOffscreenVirtualViewsOnIOS",
JReactNativeFeatureFlagsCxxInterop::hideOffscreenVirtualViewsOnIOS),
makeNativeMethod(
"optimizedAnimatedPropUpdates",
JReactNativeFeatureFlagsCxxInterop::optimizedAnimatedPropUpdates),
makeNativeMethod(
"overrideBySynchronousMountPropsAtMountingAndroid",
JReactNativeFeatureFlagsCxxInterop::overrideBySynchronousMountPropsAtMountingAndroid),
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<<400ee06a74c3147f8f682257fbf49f82>>
*/

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

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

static bool overrideBySynchronousMountPropsAtMountingAndroid(
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<<3bb0009fd52637e16a1760bb407dfbcb>>
*/

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

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

bool ReactNativeFeatureFlags::overrideBySynchronousMountPropsAtMountingAndroid() {
return getAccessor().overrideBySynchronousMountPropsAtMountingAndroid();
}
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<<95796a46468fa86faadac188ebb7e98a>>
*/

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

/**
* When enabled, uses optimized platform-specific paths to apply animated props synchronously. On Android, this uses a batched int/double buffer protocol with a single JNI call. On iOS, this passes AnimatedProps directly through the delegate chain and applies them via cloneProps, avoiding the folly::dynamic round-trip.
*/
RN_EXPORT static bool optimizedAnimatedPropUpdates();

/**
* Override props at mounting with synchronously mounted (i.e. direct manipulation) props from Native Animated.
*/
Expand Down
Loading
Loading