Skip to content

Commit

Permalink
Upgrade react-native-reanimated to 3.6.1 (#18216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Parveshdhull authored Dec 18, 2023
1 parent e06d8cb commit 8ba9f45
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 134 deletions.
31 changes: 4 additions & 27 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -497,33 +497,10 @@ PODS:
- React-Core
- RNReactNativeHapticFeedback (1.9.0):
- React
- RNReanimated (3.5.4):
- DoubleConversion
- FBLazyVector
- glog
- RCT-Folly
- RCTRequired
- RCTTypeSafety
- React-callinvoker
- RNReanimated (3.6.1):
- RCT-Folly (= 2021.07.22.00)
- React-Core
- React-Core/DevSupport
- React-Core/RCTWebSocket
- React-CoreModules
- React-cxxreact
- React-jsi
- React-jsiexecutor
- React-jsinspector
- React-RCTActionSheet
- React-RCTAnimation
- React-RCTAppDelegate
- React-RCTBlob
- React-RCTImage
- React-RCTLinking
- React-RCTNetwork
- React-RCTSettings
- React-RCTText
- ReactCommon/turbomodule/core
- Yoga
- RNShare (8.2.2):
- React-Core
- RNStaticSafeAreaInsets (2.2.0):
Expand Down Expand Up @@ -823,7 +800,7 @@ SPEC CHECKSUMS:
FBLazyVector: 71803c074f6325f10b5ec891c443b6bbabef0ca7
FBReactNativeSpec: 448e08a759d29a96e15725ae532445bf4343567c
fmt: ff9d55029c625d3757ed641535fd4a75fedc7ce9
glog: c5b451128f1a485ffb9be9df3f544b001bd1fde0
glog: cf171f517b828fdde711287b723e348da1ea0fc3
HMSegmentedControl: 34c1f54d822d8308e7b24f5d901ec674dfa31352
Keycard: ac6df4d91525c3c82635ac24d4ddd9a80aca5fc8
libwebp: f62cb61d0a484ba548448a4bd52aabf150ff6eef
Expand Down Expand Up @@ -894,7 +871,7 @@ SPEC CHECKSUMS:
RNLanguages: 962e562af0d34ab1958d89bcfdb64fafc37c513e
RNPermissions: 215c54462104b3925b412b0fb3c9c497b21c358b
RNReactNativeHapticFeedback: 2566b468cc8d0e7bb2f84b23adc0f4614594d071
RNReanimated: bdadbf5322d7894bb6016985d8ae5c9ed5fc83d0
RNReanimated: fdbaa9c964bbab7fac50c90862b6cc5f041679b9
RNShare: d82e10f6b7677f4b0048c23709bd04098d5aee6c
RNStaticSafeAreaInsets: 055ddbf5e476321720457cdaeec0ff2ba40ec1b8
RNSVG: 80584470ff1ffc7994923ea135a3e5ad825546b9
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"react-native-orientation-locker": "^1.5.0",
"react-native-permissions": "3.8.0",
"react-native-randombytes": "^3.6.1",
"react-native-reanimated": "3.5.4",
"react-native-reanimated": "3.6.1",
"react-native-redash": "18.1.0",
"react-native-shake": "^3.3.1",
"react-native-share": "^8.2.2",
Expand Down
1 change: 1 addition & 0 deletions src/mocks/js_dependencies.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@
:onChange nil
:View #js {}
:Image #js {}
:FlatList #js {}
:ScrollView #js {}
:Text #js {}
:Extrapolate #js {:CLAMP nil}
Expand Down
5 changes: 1 addition & 4 deletions src/react_native/reanimated.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@
(def scroll-view (reagent/adapt-react-class (.-ScrollView reanimated)))
(def image (reagent/adapt-react-class (.-Image reanimated)))

;; TODO: This one should use FlatList from Reanimated.
;; Trying to use Flatlist from RA causes test to fail: "The first argument must be a component. Instead
;; received: object"
(def reanimated-flat-list (reagent/adapt-react-class (.-FlatList ^js rn)))
(def reanimated-flat-list (reagent/adapt-react-class (.-FlatList reanimated)))
(defn flat-list
[props]
[reanimated-flat-list (rn-flat-list/base-list-props props)])
Expand Down
Loading

0 comments on commit 8ba9f45

Please sign in to comment.