Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update reanimated to v2.17.0 #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = function (api) {
},
},
],
'react-native-reanimated/plugin',
];

if (isProduction || isTesting) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"react-native-gesture-handler": "2.1.0",
"react-native-safe-area-context": "^3.3.2",
"react-native-svg": "12.4.3",
"react-native-reanimated": "^1.13.4"
"react-native-reanimated": "^2.17.0"
},
"devDependencies": {
"@babel/core": "^7.21.0",
Expand Down Expand Up @@ -144,7 +144,7 @@
"@freud-ds/icons": "*",
"@freud-ds/tokens": "*",
"@gorhom/portal": "*",
"react-native-reanimated": "1.13.4",
"react-native-reanimated": "^2.17.0",
"tinycolor2": "^1.6.0"
},
"bugs": {
Expand All @@ -158,4 +158,4 @@
"doc": "docs"
},
"author": "Zenklub"
}
}
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,4 @@
"node"
]
}
}
}
14 changes: 14 additions & 0 deletions playground/patches/react-native-reanimated+2.17.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
diff --git a/node_modules/react-native-reanimated/RNReanimated.podspec b/node_modules/react-native-reanimated/RNReanimated.podspec
index 1cbeafc..05ebb47 100644
--- a/node_modules/react-native-reanimated/RNReanimated.podspec
+++ b/node_modules/react-native-reanimated/RNReanimated.podspec
@@ -40,7 +40,9 @@ Pod::Spec.new do |s|
"USE_HEADERMAP" => "YES",
"HEADER_SEARCH_PATHS" => "\"$(PODS_TARGET_SRCROOT)/ReactCommon\" \"$(PODS_TARGET_SRCROOT)\" \"$(PODS_ROOT)/#{folly_prefix}Folly\" \"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/DoubleConversion\" \"$(PODS_ROOT)/Headers/Private/React-Core\" ",
"FRAMEWORK_SEARCH_PATHS" => "\"${PODS_CONFIGURATION_BUILD_DIR}/React-hermes\"",
+ "CLANG_CXX_LANGUAGE_STANDARD" => "c++17",
}
+
s.compiler_flags = folly_compiler_flags + ' ' + boost_compiler_flags
s.xcconfig = {
"HEADER_SEARCH_PATHS" => "\"$(PODS_ROOT)/boost\" \"$(PODS_ROOT)/boost-for-react-native\" \"$(PODS_ROOT)/glog\" \"$(PODS_ROOT)/#{folly_prefix}Folly\" \"$(PODS_ROOT)/RCT-Folly\" \"${PODS_ROOT}/Headers/Public/React-hermes\" \"${PODS_ROOT}/Headers/Public/hermes-engine\" \"$(PODS_ROOT)/#{config[:react_native_common_dir]}\"",
4 changes: 2 additions & 2 deletions src/components/popover/constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Easing } from 'react-native-reanimated';
import { EasingNode } from 'react-native-reanimated';

export const ARROW_SIZE = 10;
export const MIN_SPACE_FROM_BORDER = 8;
export const EASING = Easing.bezier(0.25, 0.1, 0.32, 0.96);
export const EASING = EasingNode.bezier(0.25, 0.1, 0.32, 0.96);
export const ANIMATION_DURATION = 300;
Loading
Loading