Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3488625
D14129.id46423.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D14129.id46423.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 19, 10:51 AM (9 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2674454
Default Alt Text
D14129.id46423.diff (2 KB)
Attached To
Mode
D14129: [native] Workarounds for bugs after reanimated migration
Attached
Detach File
Event Timeline
Log In to Comment