Page MenuHomePhabricator

D14129.diff
No OneTemporary

D14129.diff

diff --git a/native/navigation/overlay-navigator.react.js b/native/navigation/overlay-navigator.react.js
--- a/native/navigation/overlay-navigator.react.js
+++ b/native/navigation/overlay-navigator.react.js
@@ -480,18 +480,20 @@
easing: EasingNode.inOut(EasingNode.ease),
toValue,
}).start();
- positionV2.value = withTiming(
- toValue,
- {
- duration,
- easing: Easing.inOut(Easing.ease),
- },
- () => {
- if (positionV2.value <= 0) {
- runOnJS(removeScreen)(key);
- }
- },
- );
+ requestAnimationFrame(() => {
+ positionV2.value = withTiming(
+ toValue,
+ {
+ duration,
+ easing: Easing.inOut(Easing.ease),
+ },
+ () => {
+ if (positionV2.value <= 0) {
+ runOnJS(removeScreen)(key);
+ }
+ },
+ );
+ });
}
pendingAnimationsRef.current = {};
}, [positions, positionsV2, pendingAnimations]);
diff --git a/patches/react-native-reanimated+2.12.0.patch b/patches/react-native-reanimated+2.12.0.patch
--- a/patches/react-native-reanimated+2.12.0.patch
+++ b/patches/react-native-reanimated+2.12.0.patch
@@ -31,3 +31,22 @@
],
ast: true,
babelrc: false,
+diff --git a/node_modules/react-native-reanimated/src/reanimated2/hook/utils.ts b/node_modules/react-native-reanimated/src/reanimated2/hook/utils.ts
+index 075957d..2d3dfa4 100644
+--- a/node_modules/react-native-reanimated/src/reanimated2/hook/utils.ts
++++ b/node_modules/react-native-reanimated/src/reanimated2/hook/utils.ts
+@@ -168,13 +168,7 @@ export function parseColors(updates: AnimatedStyle): void {
+ }
+
+ export function canApplyOptimalisation(upadterFn: WorkletFunction): number {
+- const FUNCTIONLESS_FLAG = 0b00000001;
+- const STATEMENTLESS_FLAG = 0b00000010;
+- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+- const optimalization = upadterFn.__optimalization!;
+- return (
+- optimalization & FUNCTIONLESS_FLAG && optimalization & STATEMENTLESS_FLAG
+- );
++ return 0;
+ }
+
+ export function isAnimated(prop: NestedObjectValues<AnimationObject>): boolean {

File Metadata

Mime Type
text/plain
Expires
Sun, Dec 22, 12:12 PM (11 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2674454
Default Alt Text
D14129.diff (2 KB)

Event Timeline