Skip to content

Commit b6c8b9a

Browse files
authored
release: Reanimated 3.19.0 (#7837)
## Summary This PR sets reanimated version to `3.19.0`. This version includes changes listed in this cherry-pick issue: #7696 ## Current state || Fabric (iOS) | Fabric (Android) | Paper (iOS) | Paper (Android) | Web | MacOS (Paper) | TVOS (iOS) | TVOS (android) | |-|-|-|-|-|-|-|-|-| | Builds | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | Works | ✅ | ✅ | ✅ | ✅ | ✅* | ✅ | ✅ | ✅ | \* Web works if we assume that Layout Animations don't have to work (they are broken for a long time) <details> <summary>Not working exiting animations example</summary> https://github.com/user-attachments/assets/671ce312-0729-47f8-8f9a-712ff9d14639 </details> ## TODO - [x] Change the base branch to `3.19-stale` once the RN 0.81 support PR is merged - [x] Test all example apps in dev mode - [x] Test iOS & Android production builds of the example app - [x] Test Reanimated with a fresh RN 0.80 app (iOS & Android) - [x] Test Reanimated with a fresh RN 0.81 app (iOS & Android)
1 parent 4214e4b commit b6c8b9a

File tree

9 files changed

+65
-55
lines changed

9 files changed

+65
-55
lines changed

apps/fabric-example/ios/Podfile.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2416,7 +2416,7 @@ PODS:
24162416
- ReactCommon/turbomodule/core
24172417
- SocketRocket
24182418
- Yoga
2419-
- RNReanimated (3.18.0):
2419+
- RNReanimated (3.19.0):
24202420
- boost
24212421
- DoubleConversion
24222422
- fast_float
@@ -2443,11 +2443,11 @@ PODS:
24432443
- ReactCodegen
24442444
- ReactCommon/turbomodule/bridging
24452445
- ReactCommon/turbomodule/core
2446-
- RNReanimated/reanimated (= 3.18.0)
2447-
- RNReanimated/worklets (= 3.18.0)
2446+
- RNReanimated/reanimated (= 3.19.0)
2447+
- RNReanimated/worklets (= 3.19.0)
24482448
- SocketRocket
24492449
- Yoga
2450-
- RNReanimated/reanimated (3.18.0):
2450+
- RNReanimated/reanimated (3.19.0):
24512451
- boost
24522452
- DoubleConversion
24532453
- fast_float
@@ -2474,10 +2474,10 @@ PODS:
24742474
- ReactCodegen
24752475
- ReactCommon/turbomodule/bridging
24762476
- ReactCommon/turbomodule/core
2477-
- RNReanimated/reanimated/apple (= 3.18.0)
2477+
- RNReanimated/reanimated/apple (= 3.19.0)
24782478
- SocketRocket
24792479
- Yoga
2480-
- RNReanimated/reanimated/apple (3.18.0):
2480+
- RNReanimated/reanimated/apple (3.19.0):
24812481
- boost
24822482
- DoubleConversion
24832483
- fast_float
@@ -2506,7 +2506,7 @@ PODS:
25062506
- ReactCommon/turbomodule/core
25072507
- SocketRocket
25082508
- Yoga
2509-
- RNReanimated/worklets (3.18.0):
2509+
- RNReanimated/worklets (3.19.0):
25102510
- boost
25112511
- DoubleConversion
25122512
- fast_float
@@ -2533,10 +2533,10 @@ PODS:
25332533
- ReactCodegen
25342534
- ReactCommon/turbomodule/bridging
25352535
- ReactCommon/turbomodule/core
2536-
- RNReanimated/worklets/apple (= 3.18.0)
2536+
- RNReanimated/worklets/apple (= 3.19.0)
25372537
- SocketRocket
25382538
- Yoga
2539-
- RNReanimated/worklets/apple (3.18.0):
2539+
- RNReanimated/worklets/apple (3.19.0):
25402540
- boost
25412541
- DoubleConversion
25422542
- fast_float
@@ -3024,7 +3024,7 @@ SPEC CHECKSUMS:
30243024
RNCMaskedView: 7e0ce15656772a939ff0d269100bca3a182163c8
30253025
RNFlashList: 3d87e2c97db48005075574cf525d0e889ba63179
30263026
RNGestureHandler: fabb15d507aebf871bf391ec1cdded706c58688b
3027-
RNReanimated: 9091435878ec9ba1c9335617304146d67a9cc198
3027+
RNReanimated: d910b947dc5b983e93de0080677e75e760cedc6e
30283028
RNScreens: def99c66327cd2e8c892b33069e98ec57d41a5bc
30293029
RNSVG: 341f555dbcd83a34d1f058e88df387de7bbc3347
30303030
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748

apps/macos-example/macos/Podfile.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,7 @@ PODS:
14781478
- ReactCommon/turbomodule/bridging
14791479
- ReactCommon/turbomodule/core
14801480
- Yoga
1481-
- RNReanimated (3.18.0):
1481+
- RNReanimated (3.19.0):
14821482
- DoubleConversion
14831483
- glog
14841484
- RCT-Folly (= 2024.11.18.00)
@@ -1498,10 +1498,10 @@ PODS:
14981498
- ReactCodegen
14991499
- ReactCommon/turbomodule/bridging
15001500
- ReactCommon/turbomodule/core
1501-
- RNReanimated/reanimated (= 3.18.0)
1502-
- RNReanimated/worklets (= 3.18.0)
1501+
- RNReanimated/reanimated (= 3.19.0)
1502+
- RNReanimated/worklets (= 3.19.0)
15031503
- Yoga
1504-
- RNReanimated/reanimated (3.18.0):
1504+
- RNReanimated/reanimated (3.19.0):
15051505
- DoubleConversion
15061506
- glog
15071507
- RCT-Folly (= 2024.11.18.00)
@@ -1521,9 +1521,9 @@ PODS:
15211521
- ReactCodegen
15221522
- ReactCommon/turbomodule/bridging
15231523
- ReactCommon/turbomodule/core
1524-
- RNReanimated/reanimated/apple (= 3.18.0)
1524+
- RNReanimated/reanimated/apple (= 3.19.0)
15251525
- Yoga
1526-
- RNReanimated/reanimated/apple (3.18.0):
1526+
- RNReanimated/reanimated/apple (3.19.0):
15271527
- DoubleConversion
15281528
- glog
15291529
- RCT-Folly (= 2024.11.18.00)
@@ -1544,7 +1544,7 @@ PODS:
15441544
- ReactCommon/turbomodule/bridging
15451545
- ReactCommon/turbomodule/core
15461546
- Yoga
1547-
- RNReanimated/worklets (3.18.0):
1547+
- RNReanimated/worklets (3.19.0):
15481548
- DoubleConversion
15491549
- glog
15501550
- RCT-Folly (= 2024.11.18.00)
@@ -1564,9 +1564,9 @@ PODS:
15641564
- ReactCodegen
15651565
- ReactCommon/turbomodule/bridging
15661566
- ReactCommon/turbomodule/core
1567-
- RNReanimated/worklets/apple (= 3.18.0)
1567+
- RNReanimated/worklets/apple (= 3.19.0)
15681568
- Yoga
1569-
- RNReanimated/worklets/apple (3.18.0):
1569+
- RNReanimated/worklets/apple (3.19.0):
15701570
- DoubleConversion
15711571
- glog
15721572
- RCT-Folly (= 2024.11.18.00)
@@ -1875,7 +1875,7 @@ SPEC CHECKSUMS:
18751875
ReactCommon: 7490617e54cc60ef0aecee2beaa1f44d4b413e61
18761876
RNCAsyncStorage: c91d753ede6dc21862c4922cd13f98f7cfde578e
18771877
RNGestureHandler: 3aebdd5727d76b567572472b9e52c29536ee0eef
1878-
RNReanimated: 331c31051ba12ee3d16e6c5bed03a0ae0ad9180e
1878+
RNReanimated: 9b5bc752ddf28b20f5e8d578579feaccd70a9c13
18791879
RNSVG: 67de7abef81f367387b708ba6d2acefe7d4f5895
18801880
SocketRocket: 03f7111df1a343b162bf5b06ead333be808e1e0a
18811881
Yoga: b84121efc79fe86699a15c8ae59e5a6a8bca05c8

apps/paper-example/ios/Podfile.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ PODS:
22712271
- ReactCommon/turbomodule/core
22722272
- SocketRocket
22732273
- Yoga
2274-
- RNReanimated (3.18.0):
2274+
- RNReanimated (3.19.0):
22752275
- boost
22762276
- DoubleConversion
22772277
- fast_float
@@ -2298,11 +2298,11 @@ PODS:
22982298
- ReactCodegen
22992299
- ReactCommon/turbomodule/bridging
23002300
- ReactCommon/turbomodule/core
2301-
- RNReanimated/reanimated (= 3.18.0)
2302-
- RNReanimated/worklets (= 3.18.0)
2301+
- RNReanimated/reanimated (= 3.19.0)
2302+
- RNReanimated/worklets (= 3.19.0)
23032303
- SocketRocket
23042304
- Yoga
2305-
- RNReanimated/reanimated (3.18.0):
2305+
- RNReanimated/reanimated (3.19.0):
23062306
- boost
23072307
- DoubleConversion
23082308
- fast_float
@@ -2329,10 +2329,10 @@ PODS:
23292329
- ReactCodegen
23302330
- ReactCommon/turbomodule/bridging
23312331
- ReactCommon/turbomodule/core
2332-
- RNReanimated/reanimated/apple (= 3.18.0)
2332+
- RNReanimated/reanimated/apple (= 3.19.0)
23332333
- SocketRocket
23342334
- Yoga
2335-
- RNReanimated/reanimated/apple (3.18.0):
2335+
- RNReanimated/reanimated/apple (3.19.0):
23362336
- boost
23372337
- DoubleConversion
23382338
- fast_float
@@ -2361,7 +2361,7 @@ PODS:
23612361
- ReactCommon/turbomodule/core
23622362
- SocketRocket
23632363
- Yoga
2364-
- RNReanimated/worklets (3.18.0):
2364+
- RNReanimated/worklets (3.19.0):
23652365
- boost
23662366
- DoubleConversion
23672367
- fast_float
@@ -2388,10 +2388,10 @@ PODS:
23882388
- ReactCodegen
23892389
- ReactCommon/turbomodule/bridging
23902390
- ReactCommon/turbomodule/core
2391-
- RNReanimated/worklets/apple (= 3.18.0)
2391+
- RNReanimated/worklets/apple (= 3.19.0)
23922392
- SocketRocket
23932393
- Yoga
2394-
- RNReanimated/worklets/apple (3.18.0):
2394+
- RNReanimated/worklets/apple (3.19.0):
23952395
- boost
23962396
- DoubleConversion
23972397
- fast_float
@@ -2791,7 +2791,7 @@ SPEC CHECKSUMS:
27912791
RNCMaskedView: 780e715803c5d297245edcd2495aefebba69bdb3
27922792
RNFlashList: ba3a3ddff4c0b616bae48f46c536635a904da47b
27932793
RNGestureHandler: cad0a1b7e766a42852f8fb211f35a85b6199a26d
2794-
RNReanimated: aedc7b9560c8ffa41322dddd8dc9eb2612a5c87a
2794+
RNReanimated: 616ad7f5528b11734449a6301e29514517a9cbff
27952795
RNScreens: 54a1a57a3d575ba31dca9f651e55cb7a3ec32044
27962796
RNSVG: 3446469442ca54ddf210d2a1b7c2b6eaecaca2c3
27972797
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748

apps/tvos-example/ios/Podfile.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,7 @@ PODS:
16531653
- React-logger (= 0.79.0-0rc2)
16541654
- React-perflogger (= 0.79.0-0rc2)
16551655
- React-utils (= 0.79.0-0rc2)
1656-
- RNReanimated (3.18.0):
1656+
- RNReanimated (3.19.0):
16571657
- DoubleConversion
16581658
- glog
16591659
- hermes-engine
@@ -1676,10 +1676,10 @@ PODS:
16761676
- ReactCodegen
16771677
- ReactCommon/turbomodule/bridging
16781678
- ReactCommon/turbomodule/core
1679-
- RNReanimated/reanimated (= 3.18.0)
1680-
- RNReanimated/worklets (= 3.18.0)
1679+
- RNReanimated/reanimated (= 3.19.0)
1680+
- RNReanimated/worklets (= 3.19.0)
16811681
- Yoga
1682-
- RNReanimated/reanimated (3.18.0):
1682+
- RNReanimated/reanimated (3.19.0):
16831683
- DoubleConversion
16841684
- glog
16851685
- hermes-engine
@@ -1702,9 +1702,9 @@ PODS:
17021702
- ReactCodegen
17031703
- ReactCommon/turbomodule/bridging
17041704
- ReactCommon/turbomodule/core
1705-
- RNReanimated/reanimated/apple (= 3.18.0)
1705+
- RNReanimated/reanimated/apple (= 3.19.0)
17061706
- Yoga
1707-
- RNReanimated/reanimated/apple (3.18.0):
1707+
- RNReanimated/reanimated/apple (3.19.0):
17081708
- DoubleConversion
17091709
- glog
17101710
- hermes-engine
@@ -1728,7 +1728,7 @@ PODS:
17281728
- ReactCommon/turbomodule/bridging
17291729
- ReactCommon/turbomodule/core
17301730
- Yoga
1731-
- RNReanimated/worklets (3.18.0):
1731+
- RNReanimated/worklets (3.19.0):
17321732
- DoubleConversion
17331733
- glog
17341734
- hermes-engine
@@ -1751,9 +1751,9 @@ PODS:
17511751
- ReactCodegen
17521752
- ReactCommon/turbomodule/bridging
17531753
- ReactCommon/turbomodule/core
1754-
- RNReanimated/worklets/apple (= 3.18.0)
1754+
- RNReanimated/worklets/apple (= 3.19.0)
17551755
- Yoga
1756-
- RNReanimated/worklets/apple (3.18.0):
1756+
- RNReanimated/worklets/apple (3.19.0):
17571757
- DoubleConversion
17581758
- glog
17591759
- hermes-engine
@@ -2074,7 +2074,7 @@ SPEC CHECKSUMS:
20742074
ReactAppDependencyProvider: ec07a48c499f7f1420c872ba3347ce7937000960
20752075
ReactCodegen: a9e644a22d3ef480d4973dd117c9458da936d12b
20762076
ReactCommon: 975c24e76b57544fa910b0caee34f4adbfe90abb
2077-
RNReanimated: 7176dec0de57c774c9c6b68d4fdc13f9e0b1f2e6
2077+
RNReanimated: d44df131234978d76435d05c1c7078d8dac27073
20782078
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748
20792079
Yoga: d4280c1f5bc3aef681cf28421e3a988c2d77ba31
20802080

packages/react-native-reanimated/Common/cpp/reanimated/Fabric/PropsRegistry.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ std::lock_guard<std::mutex> PropsRegistry::createLock() const {
99
}
1010

1111
void PropsRegistry::update(
12-
const ShadowNode::Shared &shadowNode,
12+
const std::shared_ptr<const ShadowNode> &shadowNode,
1313
folly::dynamic &&props) {
1414
const auto tag = shadowNode->getTag();
1515
const auto it = map_.find(tag);
@@ -24,15 +24,17 @@ void PropsRegistry::update(
2424
}
2525
}
2626

27-
void PropsRegistry::for_each(std::function<void(
28-
const ShadowNodeFamily &family,
29-
const folly::dynamic &props)> callback) const {
27+
void PropsRegistry::for_each(
28+
std::function<
29+
void(const ShadowNodeFamily &family, const folly::dynamic &props)>
30+
callback) const {
3031
for (const auto &[_, value] : map_) {
3132
callback(value.first->getFamily(), value.second);
3233
}
3334
}
3435

35-
void PropsRegistry::markNodeAsRemovable(const ShadowNode::Shared &shadowNode) {
36+
void PropsRegistry::markNodeAsRemovable(
37+
const std::shared_ptr<const ShadowNode> &shadowNode) {
3638
removableShadowNodes_[shadowNode->getTag()] = shadowNode;
3739
}
3840

packages/react-native-reanimated/Common/cpp/reanimated/Fabric/PropsRegistry.h

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,14 @@ class PropsRegistry {
1717
std::lock_guard<std::mutex> createLock() const;
1818
// returns a lock you need to hold when calling any of the methods below
1919

20-
void update(const ShadowNode::Shared &shadowNode, folly::dynamic &&props);
20+
void update(
21+
const std::shared_ptr<const ShadowNode> &shadowNode,
22+
folly::dynamic &&props);
2123

22-
void for_each(std::function<void(
23-
const ShadowNodeFamily &family,
24-
const folly::dynamic &props)> callback) const;
24+
void for_each(
25+
std::function<
26+
void(const ShadowNodeFamily &family, const folly::dynamic &props)>
27+
callback) const;
2528

2629
void remove(const Tag tag);
2730

@@ -49,13 +52,17 @@ class PropsRegistry {
4952
return map_.empty();
5053
}
5154

52-
void markNodeAsRemovable(const ShadowNode::Shared &shadowNode);
55+
void markNodeAsRemovable(const std::shared_ptr<const ShadowNode> &shadowNode);
5356
void unmarkNodeAsRemovable(Tag viewTag);
5457
void handleNodeRemovals(const RootShadowNode &rootShadowNode);
5558

5659
private:
57-
std::unordered_map<Tag, std::pair<ShadowNode::Shared, folly::dynamic>> map_;
58-
std::unordered_map<Tag, ShadowNode::Shared> removableShadowNodes_;
60+
std::unordered_map<
61+
Tag,
62+
std::pair<std::shared_ptr<const ShadowNode>, folly::dynamic>>
63+
map_;
64+
std::unordered_map<Tag, std::shared_ptr<const ShadowNode>>
65+
removableShadowNodes_;
5966

6067
mutable std::mutex mutex_; // Protects `map_`.
6168

packages/react-native-reanimated/Common/cpp/reanimated/NativeModules/ReanimatedModuleProxy.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,8 @@ class ReanimatedModuleProxy
228228
std::shared_ptr<UIManager> uiManager_;
229229
std::shared_ptr<LayoutAnimationsProxy> layoutAnimationsProxy_;
230230

231-
std::vector<std::pair<ShadowNode::Shared, std::unique_ptr<jsi::Value>>>
231+
std::vector<
232+
std::pair<std::shared_ptr<const ShadowNode>, std::unique_ptr<jsi::Value>>>
232233
operationsInBatch_; // TODO: refactor std::pair to custom struct
233234

234235
std::shared_ptr<PropsRegistry> propsRegistry_;

packages/react-native-reanimated/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-reanimated",
3-
"version": "3.18.0",
3+
"version": "3.19.0",
44
"description": "More powerful alternative to Animated library for React Native.",
55
"scripts": {
66
"test": "jest",

packages/react-native-reanimated/src/platform-specific/jsVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
* version used to build the native part of the library in runtime. Remember to
55
* keep this in sync with the version declared in `package.json`
66
*/
7-
export const jsVersion = '3.18.0';
7+
export const jsVersion = '3.19.0';

0 commit comments

Comments
 (0)