-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade reanimated to fix crash * Fix type errors from reanimated upgrade * lint * Fix HourglassAnimation * Revert "move nft fetching logic to graphql worker (#5421)" This reverts commit fff25a6. * Bump reanimated to v3.7.1 * Improve animation frame rates I suspect the request for 120fps is being rejected, so instead this requests a range of 80-120fps, with a preferred frame rate of 80fps — any higher than 80fps resulted in a lower frame rate, presumably because the request was rejected This should improve frame rates for all animations throughout the app * Fix android build - remove old reanimated shim * Fix lint error, AnimateProps deprecation warning --------- Co-authored-by: Christian Baroni <7061887+christianbaroni@users.noreply.github.com> Co-authored-by: Ben Goldberg <bengoldberg@rainbow.me>
- Loading branch information
1 parent
65e1aa9
commit 040b928
Showing
8 changed files
with
141 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/node_modules/react-native-reanimated/.DS_Store b/node_modules/react-native-reanimated/.DS_Store | ||
new file mode 100644 | ||
index 0000000..928aae8 | ||
Binary files /dev/null and b/node_modules/react-native-reanimated/.DS_Store differ | ||
diff --git a/node_modules/react-native-reanimated/apple/REANodesManager.mm b/node_modules/react-native-reanimated/apple/REANodesManager.mm | ||
index ed36c99..0156141 100644 | ||
--- a/node_modules/react-native-reanimated/apple/REANodesManager.mm | ||
+++ b/node_modules/react-native-reanimated/apple/REANodesManager.mm | ||
@@ -176,7 +176,11 @@ - (READisplayLink *)getDisplayLink | ||
if (!_displayLink) { | ||
_displayLink = [READisplayLink displayLinkWithTarget:self selector:@selector(onAnimationFrame:)]; | ||
#if !TARGET_OS_OSX | ||
- _displayLink.preferredFramesPerSecond = 120; // will fallback to 60 fps for devices without Pro Motion display | ||
+ if (@available(iOS 15.0, *)) { | ||
+ _displayLink.preferredFrameRateRange = CAFrameRateRangeMake(80, 120, 80); | ||
+ } else { | ||
+ _displayLink.preferredFramesPerSecond = 120; // will fallback to 60 fps for devices without Pro Motion display | ||
+ } | ||
#endif | ||
[_displayLink addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSRunLoopCommonModes]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.