react-native 0.0.0-20220102-2009-e22b760e5 → 0.0.0-20220106-2009-252b2a63c

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/Libraries/Core/ReactNativeVersion.js +1 -1
  2. package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -7
  3. package/React/Base/RCTVersion.m +1 -1
  4. package/ReactAndroid/src/main/java/com/facebook/react/devsupport/BridgeDevSupportManager.java +1 -5
  5. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  6. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +11 -3
  7. package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java +13 -6
  8. package/ReactAndroid/src/main/java/com/facebook/react/views/image/ReactImageManager.java +18 -11
  9. package/ReactAndroid/src/main/java/com/facebook/react/views/modal/ReactModalHostManager.java +11 -4
  10. package/ReactAndroid/src/main/java/com/facebook/react/views/scroll/ReactScrollViewManager.java +7 -1
  11. package/ReactAndroid/src/main/java/com/facebook/react/views/slider/ReactSliderManager.java +10 -3
  12. package/ReactAndroid/src/main/java/com/facebook/react/views/swiperefresh/SwipeRefreshLayoutManager.java +10 -3
  13. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTextViewManager.java +10 -3
  14. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactTextInputManager.java +51 -37
  15. package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.cpp +7 -0
  16. package/ReactAndroid/src/main/jni/react/jni/WritableNativeArray.h +2 -0
  17. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  18. package/ReactCommon/react/renderer/.clang-tidy +12 -0
  19. package/ReactCommon/react/renderer/animations/LayoutAnimationKeyFrameManager.cpp +6 -5
  20. package/ReactCommon/react/renderer/animations/tests/LayoutAnimationTest.cpp +2 -1
  21. package/ReactCommon/react/renderer/attributedstring/AttributedStringBox.cpp +1 -1
  22. package/ReactCommon/react/renderer/attributedstring/AttributedStringBox.h +1 -1
  23. package/ReactCommon/react/renderer/componentregistry/ComponentDescriptorProviderRegistry.cpp +2 -1
  24. package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarMeasurementsManager.cpp +1 -1
  25. package/ReactCommon/react/renderer/components/progressbar/android/react/renderer/components/progressbar/AndroidProgressBarMeasurementsManager.h +1 -1
  26. package/ReactCommon/react/renderer/components/text/BaseTextProps.cpp +4 -4
  27. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputShadowNode.cpp +3 -1
  28. package/ReactCommon/react/renderer/components/textinput/androidtextinput/react/renderer/components/androidtextinput/AndroidTextInputState.cpp +0 -1
  29. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputState.cpp +1 -1
  30. package/ReactCommon/react/renderer/components/textinput/iostextinput/TextInputState.h +3 -1
  31. package/ReactCommon/react/renderer/core/EventDispatcher.cpp +1 -1
  32. package/ReactCommon/react/renderer/core/EventDispatcher.h +1 -1
  33. package/ReactCommon/react/renderer/core/LayoutableShadowNode.cpp +1 -1
  34. package/ReactCommon/react/renderer/core/LayoutableShadowNode.h +1 -1
  35. package/ReactCommon/react/renderer/core/ShadowNode.cpp +4 -4
  36. package/ReactCommon/react/renderer/core/ShadowNode.h +2 -2
  37. package/ReactCommon/react/renderer/debug/DebugStringConvertible.cpp +2 -2
  38. package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.cpp +1 -1
  39. package/ReactCommon/react/renderer/graphics/platform/cxx/react/renderer/graphics/Color.h +1 -1
  40. package/ReactCommon/react/renderer/mounting/MountingCoordinator.cpp +1 -1
  41. package/ReactCommon/react/renderer/mounting/ShadowTree.cpp +5 -5
  42. package/ReactCommon/react/renderer/mounting/ShadowTreeRegistry.cpp +2 -2
  43. package/ReactCommon/react/renderer/mounting/ShadowTreeRegistry.h +2 -2
  44. package/ReactCommon/react/renderer/mounting/ShadowViewMutation.cpp +8 -8
  45. package/ReactCommon/react/renderer/mounting/TelemetryController.cpp +5 -4
  46. package/ReactCommon/react/renderer/mounting/TelemetryController.h +6 -3
  47. package/ReactCommon/react/renderer/mounting/tests/MountingTest.cpp +1 -1
  48. package/ReactCommon/react/renderer/mounting/tests/StackingContextTest.cpp +2 -2
  49. package/ReactCommon/react/renderer/templateprocessor/UITemplateProcessor.cpp +2 -2
  50. package/ReactCommon/react/renderer/templateprocessor/UITemplateProcessor.h +2 -2
  51. package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.cpp +11 -11
  52. package/ReactCommon/react/renderer/textlayoutmanager/platform/android/react/renderer/textlayoutmanager/TextLayoutManager.h +8 -8
  53. package/android/com/facebook/react/react-native/{0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.aar → 0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.aar} +0 -0
  54. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.aar.md5 +1 -0
  55. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.aar.sha1 +1 -0
  56. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.aar.sha256 +1 -0
  57. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.aar.sha512 +1 -0
  58. package/android/com/facebook/react/react-native/{0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.module → 0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.module} +16 -16
  59. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.module.md5 +1 -0
  60. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.module.sha1 +1 -0
  61. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.module.sha256 +1 -0
  62. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.module.sha512 +1 -0
  63. package/android/com/facebook/react/react-native/{0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.pom → 0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.pom} +1 -1
  64. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.pom.md5 +1 -0
  65. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.pom.sha1 +1 -0
  66. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.pom.sha256 +1 -0
  67. package/android/com/facebook/react/react-native/0.0.0-20220106-2009-252b2a63c/react-native-0.0.0-20220106-2009-252b2a63c.pom.sha512 +1 -0
  68. package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
  69. package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
  70. package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
  71. package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
  72. package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
  73. package/package.json +1 -1
  74. package/template/android/build.gradle +2 -2
  75. package/template/android/gradle/wrapper/gradle-wrapper.properties +1 -1
  76. package/template/package.json +1 -1
  77. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.aar.md5 +0 -1
  78. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.aar.sha1 +0 -1
  79. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.aar.sha256 +0 -1
  80. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.aar.sha512 +0 -1
  81. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.module.md5 +0 -1
  82. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.module.sha1 +0 -1
  83. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.module.sha256 +0 -1
  84. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.module.sha512 +0 -1
  85. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.pom.md5 +0 -1
  86. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.pom.sha1 +0 -1
  87. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.pom.sha256 +0 -1
  88. package/android/com/facebook/react/react-native/0.0.0-20220102-2009-e22b760e5/react-native-0.0.0-20220102-2009-e22b760e5.pom.sha512 +0 -1
@@ -29,7 +29,7 @@ class EventDispatcher {
29
29
  using Weak = std::weak_ptr<EventDispatcher const>;
30
30
 
31
31
  EventDispatcher(
32
- EventQueueProcessor eventProcessor,
32
+ EventQueueProcessor const &eventProcessor,
33
33
  EventBeat::Factory const &synchonousEventBeatFactory,
34
34
  EventBeat::Factory const &asynchonousEventBeatFactory,
35
35
  EventBeat::SharedOwnerBox const &ownerBox);
@@ -203,7 +203,7 @@ Float LayoutableShadowNode::lastBaseline(Size size) const {
203
203
  }
204
204
 
205
205
  ShadowNode::Shared LayoutableShadowNode::findNodeAtPoint(
206
- ShadowNode::Shared node,
206
+ ShadowNode::Shared const &node,
207
207
  Point point) {
208
208
  auto layoutableShadowNode =
209
209
  traitCast<const LayoutableShadowNode *>(node.get());
@@ -133,7 +133,7 @@ class LayoutableShadowNode : public ShadowNode {
133
133
  * parameter.
134
134
  */
135
135
  static ShadowNode::Shared findNodeAtPoint(
136
- ShadowNode::Shared node,
136
+ ShadowNode::Shared const &node,
137
137
  Point point);
138
138
 
139
139
  /*
@@ -180,7 +180,7 @@ void ShadowNode::sealRecursive() const {
180
180
 
181
181
  props_->seal();
182
182
 
183
- for (auto child : *children_) {
183
+ for (auto const &child : *children_) {
184
184
  child->sealRecursive();
185
185
  }
186
186
  }
@@ -255,8 +255,8 @@ ShadowNodeFamily const &ShadowNode::getFamily() const {
255
255
 
256
256
  ShadowNode::Unshared ShadowNode::cloneTree(
257
257
  ShadowNodeFamily const &shadowNodeFamily,
258
- std::function<ShadowNode::Unshared(ShadowNode const &oldShadowNode)>
259
- callback) const {
258
+ std::function<ShadowNode::Unshared(ShadowNode const &oldShadowNode)> const
259
+ &callback) const {
260
260
  auto ancestors = shadowNodeFamily.getAncestors(*this);
261
261
 
262
262
  if (ancestors.empty()) {
@@ -308,7 +308,7 @@ std::string ShadowNode::getDebugValue() const {
308
308
  SharedDebugStringConvertibleList ShadowNode::getDebugChildren() const {
309
309
  auto debugChildren = SharedDebugStringConvertibleList{};
310
310
 
311
- for (auto child : *children_) {
311
+ for (auto const &child : *children_) {
312
312
  auto debugChild =
313
313
  std::dynamic_pointer_cast<const DebugStringConvertible>(child);
314
314
  if (debugChild) {
@@ -114,8 +114,8 @@ class ShadowNode : public Sealable, public DebugStringConvertible {
114
114
  */
115
115
  ShadowNode::Unshared cloneTree(
116
116
  ShadowNodeFamily const &shadowNodeFamily,
117
- std::function<ShadowNode::Unshared(ShadowNode const &oldShadowNode)>
118
- callback) const;
117
+ std::function<ShadowNode::Unshared(ShadowNode const &oldShadowNode)> const
118
+ &callback) const;
119
119
 
120
120
  #pragma mark - Getters
121
121
 
@@ -26,7 +26,7 @@ std::string DebugStringConvertible::getDebugChildrenDescription(
26
26
  auto trailing = options.format ? std::string{"\n"} : std::string{""};
27
27
  auto childrenString = std::string{""};
28
28
 
29
- for (auto child : getDebugChildren()) {
29
+ for (auto const &child : getDebugChildren()) {
30
30
  if (!child) {
31
31
  continue;
32
32
  }
@@ -52,7 +52,7 @@ std::string DebugStringConvertible::getDebugPropsDescription(
52
52
 
53
53
  auto propsString = std::string{""};
54
54
 
55
- for (auto prop : getDebugProps()) {
55
+ for (auto const &prop : getDebugProps()) {
56
56
  if (!prop) {
57
57
  continue;
58
58
  }
@@ -27,7 +27,7 @@ SharedColor colorFromComponents(ColorComponents components) {
27
27
  ((int)round(components.blue * ratio) & 0xff));
28
28
  }
29
29
 
30
- ColorComponents colorComponentsFromColor(SharedColor sharedColor) {
30
+ ColorComponents colorComponentsFromColor(SharedColor const &sharedColor) {
31
31
  float ratio = 255;
32
32
  Color color = *sharedColor;
33
33
  return ColorComponents{
@@ -61,7 +61,7 @@ class SharedColor {
61
61
 
62
62
  bool isColorMeaningful(SharedColor const &color) noexcept;
63
63
  SharedColor colorFromComponents(ColorComponents components);
64
- ColorComponents colorComponentsFromColor(SharedColor color);
64
+ ColorComponents colorComponentsFromColor(SharedColor const &color);
65
65
 
66
66
  SharedColor clearColor();
67
67
  SharedColor blackColor();
@@ -183,7 +183,7 @@ TelemetryController const &MountingCoordinator::getTelemetryController() const {
183
183
  void MountingCoordinator::setMountingOverrideDelegate(
184
184
  std::weak_ptr<MountingOverrideDelegate const> delegate) const {
185
185
  std::lock_guard<std::mutex> lock(mutex_);
186
- mountingOverrideDelegate_ = delegate;
186
+ mountingOverrideDelegate_ = std::move(delegate);
187
187
  }
188
188
 
189
189
  } // namespace react
@@ -110,8 +110,8 @@ static ShadowNode::Unshared progressState(
110
110
 
111
111
  // Stage 1: Aligned part.
112
112
  for (index = 0; index < childrenSize && index < baseChildrenSize; index++) {
113
- const auto &childNode = *children.at(index);
114
- const auto &baseChildNode = *baseChildren.at(index);
113
+ auto const &childNode = *children[index];
114
+ auto const &baseChildNode = *baseChildren[index];
115
115
 
116
116
  if (&childNode == &baseChildNode) {
117
117
  // Nodes are identical, skipping.
@@ -136,7 +136,7 @@ static ShadowNode::Unshared progressState(
136
136
 
137
137
  // Stage 2: Misaligned part.
138
138
  for (; index < childrenSize; index++) {
139
- auto newChildNode = progressState(*children.at(index));
139
+ auto newChildNode = progressState(*children[index]);
140
140
  if (newChildNode) {
141
141
  if (!areChildrenChanged) {
142
142
  // Making a copy before the first mutation.
@@ -335,7 +335,7 @@ CommitStatus ShadowTree::tryCommit(
335
335
  oldRevision = currentRevision_;
336
336
  }
337
337
 
338
- auto oldRootShadowNode = oldRevision.rootShadowNode;
338
+ auto const &oldRootShadowNode = oldRevision.rootShadowNode;
339
339
  auto newRootShadowNode = transaction(*oldRevision.rootShadowNode);
340
340
 
341
341
  if (!newRootShadowNode ||
@@ -345,7 +345,7 @@ CommitStatus ShadowTree::tryCommit(
345
345
 
346
346
  if (commitOptions.enableStateReconciliation) {
347
347
  auto updatedNewRootShadowNode =
348
- progressState(*newRootShadowNode, *oldRevision.rootShadowNode);
348
+ progressState(*newRootShadowNode, *oldRootShadowNode);
349
349
  if (updatedNewRootShadowNode) {
350
350
  newRootShadowNode =
351
351
  std::static_pointer_cast<RootShadowNode>(updatedNewRootShadowNode);
@@ -39,7 +39,7 @@ std::unique_ptr<ShadowTree> ShadowTreeRegistry::remove(
39
39
 
40
40
  bool ShadowTreeRegistry::visit(
41
41
  SurfaceId surfaceId,
42
- std::function<void(const ShadowTree &shadowTree)> callback) const {
42
+ std::function<void(const ShadowTree &shadowTree)> const &callback) const {
43
43
  std::shared_lock<butter::shared_mutex> lock(mutex_);
44
44
 
45
45
  auto iterator = registry_.find(surfaceId);
@@ -53,7 +53,7 @@ bool ShadowTreeRegistry::visit(
53
53
  }
54
54
 
55
55
  void ShadowTreeRegistry::enumerate(
56
- std::function<void(const ShadowTree &shadowTree)> callback) const {
56
+ std::function<void(const ShadowTree &shadowTree)> const &callback) const {
57
57
  std::shared_lock<butter::shared_mutex> lock(mutex_);
58
58
  for (auto const &pair : registry_) {
59
59
  callback(*pair.second);
@@ -50,14 +50,14 @@ class ShadowTreeRegistry final {
50
50
  */
51
51
  bool visit(
52
52
  SurfaceId surfaceId,
53
- std::function<void(const ShadowTree &shadowTree)> callback) const;
53
+ std::function<void(const ShadowTree &shadowTree)> const &callback) const;
54
54
 
55
55
  /*
56
56
  * Enumerates all stored shadow trees.
57
57
  * Can be called from any thread.
58
58
  */
59
59
  void enumerate(
60
- std::function<void(const ShadowTree &shadowTree)> callback) const;
60
+ std::function<void(const ShadowTree &shadowTree)> const &callback) const;
61
61
 
62
62
  private:
63
63
  mutable butter::shared_mutex mutex_;
@@ -17,7 +17,7 @@ ShadowViewMutation ShadowViewMutation::CreateMutation(ShadowView shadowView) {
17
17
  /* .type = */ Create,
18
18
  /* .parentShadowView = */ {},
19
19
  /* .oldChildShadowView = */ {},
20
- /* .newChildShadowView = */ shadowView,
20
+ /* .newChildShadowView = */ std::move(shadowView),
21
21
  /* .index = */ -1,
22
22
  };
23
23
  }
@@ -26,7 +26,7 @@ ShadowViewMutation ShadowViewMutation::DeleteMutation(ShadowView shadowView) {
26
26
  return {
27
27
  /* .type = */ Delete,
28
28
  /* .parentShadowView = */ {},
29
- /* .oldChildShadowView = */ shadowView,
29
+ /* .oldChildShadowView = */ std::move(shadowView),
30
30
  /* .newChildShadowView = */ {},
31
31
  /* .index = */ -1,
32
32
  };
@@ -38,9 +38,9 @@ ShadowViewMutation ShadowViewMutation::InsertMutation(
38
38
  int index) {
39
39
  return {
40
40
  /* .type = */ Insert,
41
- /* .parentShadowView = */ parentShadowView,
41
+ /* .parentShadowView = */ std::move(parentShadowView),
42
42
  /* .oldChildShadowView = */ {},
43
- /* .newChildShadowView = */ childShadowView,
43
+ /* .newChildShadowView = */ std::move(childShadowView),
44
44
  /* .index = */ index,
45
45
  };
46
46
  }
@@ -51,8 +51,8 @@ ShadowViewMutation ShadowViewMutation::RemoveMutation(
51
51
  int index) {
52
52
  return {
53
53
  /* .type = */ Remove,
54
- /* .parentShadowView = */ parentShadowView,
55
- /* .oldChildShadowView = */ childShadowView,
54
+ /* .parentShadowView = */ std::move(parentShadowView),
55
+ /* .oldChildShadowView = */ std::move(childShadowView),
56
56
  /* .newChildShadowView = */ {},
57
57
  /* .index = */ index,
58
58
  };
@@ -64,8 +64,8 @@ ShadowViewMutation ShadowViewMutation::UpdateMutation(
64
64
  return {
65
65
  /* .type = */ Update,
66
66
  /* .parentShadowView = */ {},
67
- /* .oldChildShadowView = */ oldChildShadowView,
68
- /* .newChildShadowView = */ newChildShadowView,
67
+ /* .oldChildShadowView = */ std::move(oldChildShadowView),
68
+ /* .newChildShadowView = */ std::move(newChildShadowView),
69
69
  /* .index = */ -1,
70
70
  };
71
71
  }
@@ -17,9 +17,10 @@ TelemetryController::TelemetryController(
17
17
  : mountingCoordinator_(mountingCoordinator) {}
18
18
 
19
19
  bool TelemetryController::pullTransaction(
20
- std::function<void(MountingTransactionMetadata metadata)> willMount,
21
- std::function<void(ShadowViewMutationList const &mutations)> doMount,
22
- std::function<void(MountingTransactionMetadata metadata)> didMount) const {
20
+ std::function<void(MountingTransactionMetadata metadata)> const &willMount,
21
+ std::function<void(ShadowViewMutationList const &mutations)> const &doMount,
22
+ std::function<void(MountingTransactionMetadata metadata)> const &didMount)
23
+ const {
23
24
  auto optional = mountingCoordinator_.pullTransaction();
24
25
  if (!optional.has_value()) {
25
26
  return false;
@@ -39,7 +40,7 @@ bool TelemetryController::pullTransaction(
39
40
  willMount({surfaceId, number, telemetry, compoundTelemetry});
40
41
 
41
42
  telemetry.willMount();
42
- doMount(std::move(transaction.getMutations()));
43
+ doMount(transaction.getMutations());
43
44
  telemetry.didMount();
44
45
 
45
46
  compoundTelemetry.incorporate(telemetry, numberOfMutations);
@@ -43,9 +43,12 @@ class TelemetryController final {
43
43
  * Calls `MountingCoordinator::pullTransaction()` and aggregates telemetry.
44
44
  */
45
45
  bool pullTransaction(
46
- std::function<void(MountingTransactionMetadata metadata)> willMount,
47
- std::function<void(ShadowViewMutationList const &mutations)> doMount,
48
- std::function<void(MountingTransactionMetadata metadata)> didMount) const;
46
+ std::function<void(MountingTransactionMetadata metadata)> const
47
+ &willMount,
48
+ std::function<void(ShadowViewMutationList const &mutations)> const
49
+ &doMount,
50
+ std::function<void(MountingTransactionMetadata metadata)> const &didMount)
51
+ const;
49
52
 
50
53
  private:
51
54
  MountingCoordinator const &mountingCoordinator_;
@@ -43,7 +43,7 @@ static SharedViewProps nonFlattenedDefaultProps(
43
43
  static ShadowNode::Shared makeNode(
44
44
  ComponentDescriptor const &componentDescriptor,
45
45
  int tag,
46
- ShadowNode::ListOfShared children,
46
+ const ShadowNode::ListOfShared &children,
47
47
  bool flattened = false) {
48
48
  auto props = flattened ? generateDefaultProps(componentDescriptor)
49
49
  : nonFlattenedDefaultProps(componentDescriptor);
@@ -153,7 +153,7 @@ class StackingContextTest : public ::testing::Test {
153
153
  }
154
154
 
155
155
  void mutateViewShadowNodeProps_(
156
- std::shared_ptr<ViewShadowNode> node,
156
+ std::shared_ptr<ViewShadowNode> const &node,
157
157
  std::function<void(ViewProps &props)> callback) {
158
158
  rootShadowNode_ =
159
159
  std::static_pointer_cast<RootShadowNode>(rootShadowNode_->cloneTree(
@@ -165,7 +165,7 @@ class StackingContextTest : public ::testing::Test {
165
165
  }
166
166
 
167
167
  void testViewTree_(
168
- std::function<void(StubViewTree const &viewTree)> callback) {
168
+ std::function<void(StubViewTree const &viewTree)> const &callback) {
169
169
  rootShadowNode_->layoutIfNeeded();
170
170
 
171
171
  callback(buildStubViewTreeUsingDifferentiator(*rootShadowNode_));
@@ -39,7 +39,7 @@ SharedShadowNode UITemplateProcessor::runCommand(
39
39
  std::vector<folly::dynamic> &registers,
40
40
  const ComponentDescriptorRegistry &componentDescriptorRegistry,
41
41
  const NativeModuleRegistry &nativeModuleRegistry,
42
- const std::shared_ptr<const ReactNativeConfig> reactNativeConfig) {
42
+ std::shared_ptr<const ReactNativeConfig> const &reactNativeConfig) {
43
43
  const std::string &opcode = command[0].asString();
44
44
  const int tagOffset = 420000;
45
45
  // TODO: change to integer codes and a switch statement
@@ -106,7 +106,7 @@ SharedShadowNode UITemplateProcessor::buildShadowTree(
106
106
  const folly::dynamic &params,
107
107
  const ComponentDescriptorRegistry &componentDescriptorRegistry,
108
108
  const NativeModuleRegistry &nativeModuleRegistry,
109
- const std::shared_ptr<const ReactNativeConfig> reactNativeConfig) {
109
+ std::shared_ptr<const ReactNativeConfig> const &reactNativeConfig) {
110
110
  if (DEBUG_FLY) {
111
111
  LOG(INFO)
112
112
  << "(strt) UITemplateProcessor inject hardcoded 'server rendered' view tree";
@@ -50,7 +50,7 @@ class UITemplateProcessor {
50
50
  const folly::dynamic &params,
51
51
  const ComponentDescriptorRegistry &componentDescriptorRegistry,
52
52
  const NativeModuleRegistry &nativeModuleRegistry,
53
- const std::shared_ptr<const ReactNativeConfig> reactNativeConfig);
53
+ std::shared_ptr<const ReactNativeConfig> const &reactNativeConfig);
54
54
 
55
55
  private:
56
56
  static ShadowNode::Shared runCommand(
@@ -60,7 +60,7 @@ class UITemplateProcessor {
60
60
  std::vector<folly::dynamic> &registers,
61
61
  const ComponentDescriptorRegistry &componentDescriptorRegistry,
62
62
  const NativeModuleRegistry &nativeModuleRegistry,
63
- const std::shared_ptr<const ReactNativeConfig> reactNativeConfig);
63
+ std::shared_ptr<const ReactNativeConfig> const &reactNativeConfig);
64
64
  };
65
65
  } // namespace react
66
66
  } // namespace facebook
@@ -27,7 +27,7 @@ void *TextLayoutManager::getNativeTextLayoutManager() const {
27
27
  }
28
28
 
29
29
  TextMeasurement TextLayoutManager::measure(
30
- AttributedStringBox attributedStringBox,
30
+ AttributedStringBox const &attributedStringBox,
31
31
  ParagraphAttributes paragraphAttributes,
32
32
  LayoutConstraints layoutConstraints) const {
33
33
  auto &attributedString = attributedStringBox.getValue();
@@ -59,7 +59,7 @@ TextMeasurement TextLayoutManager::measure(
59
59
 
60
60
  TextMeasurement TextLayoutManager::measureCachedSpannableById(
61
61
  int64_t cacheId,
62
- ParagraphAttributes paragraphAttributes,
62
+ ParagraphAttributes const &paragraphAttributes,
63
63
  LayoutConstraints layoutConstraints) const {
64
64
  auto env = Environment::current();
65
65
  auto attachmentPositions = env->NewFloatArray(0);
@@ -93,8 +93,8 @@ TextMeasurement TextLayoutManager::measureCachedSpannableById(
93
93
  }
94
94
 
95
95
  LinesMeasurements TextLayoutManager::measureLines(
96
- AttributedString attributedString,
97
- ParagraphAttributes paragraphAttributes,
96
+ AttributedString const &attributedString,
97
+ ParagraphAttributes const &paragraphAttributes,
98
98
  Size size) const {
99
99
  if (mapBufferSerializationEnabled_) {
100
100
  return measureLinesMapBuffer(attributedString, paragraphAttributes, size);
@@ -147,8 +147,8 @@ LinesMeasurements TextLayoutManager::measureLines(
147
147
  }
148
148
 
149
149
  LinesMeasurements TextLayoutManager::measureLinesMapBuffer(
150
- AttributedString attributedString,
151
- ParagraphAttributes paragraphAttributes,
150
+ AttributedString const &attributedString,
151
+ ParagraphAttributes const &paragraphAttributes,
152
152
  Size size) const {
153
153
  const jni::global_ref<jobject> &fabricUIManager =
154
154
  contextContainer_->at<jni::global_ref<jobject>>("FabricUIManager");
@@ -189,12 +189,12 @@ LinesMeasurements TextLayoutManager::measureLinesMapBuffer(
189
189
 
190
190
  TextMeasurement TextLayoutManager::doMeasure(
191
191
  AttributedString attributedString,
192
- ParagraphAttributes paragraphAttributes,
192
+ ParagraphAttributes const &paragraphAttributes,
193
193
  LayoutConstraints layoutConstraints) const {
194
194
  layoutConstraints.maximumSize.height = std::numeric_limits<Float>::infinity();
195
195
 
196
196
  int attachmentsCount = 0;
197
- for (auto fragment : attributedString.getFragments()) {
197
+ for (auto const &fragment : attributedString.getFragments()) {
198
198
  if (fragment.isAttachment()) {
199
199
  attachmentsCount++;
200
200
  }
@@ -253,12 +253,12 @@ TextMeasurement TextLayoutManager::doMeasure(
253
253
 
254
254
  TextMeasurement TextLayoutManager::doMeasureMapBuffer(
255
255
  AttributedString attributedString,
256
- ParagraphAttributes paragraphAttributes,
256
+ ParagraphAttributes const &paragraphAttributes,
257
257
  LayoutConstraints layoutConstraints) const {
258
258
  layoutConstraints.maximumSize.height = std::numeric_limits<Float>::infinity();
259
259
 
260
260
  int attachmentsCount = 0;
261
- for (auto fragment : attributedString.getFragments()) {
261
+ for (auto const &fragment : attributedString.getFragments()) {
262
262
  if (fragment.isAttachment()) {
263
263
  attachmentsCount++;
264
264
  }
@@ -290,7 +290,7 @@ TextMeasurement TextLayoutManager::doMeasureMapBuffer(
290
290
  auto attachments = TextMeasurement::Attachments{};
291
291
  if (attachmentsCount > 0) {
292
292
  int attachmentIndex = 0;
293
- for (auto fragment : attributedString.getFragments()) {
293
+ for (const auto &fragment : attributedString.getFragments()) {
294
294
  if (fragment.isAttachment()) {
295
295
  float top = attachmentData[attachmentIndex * 2];
296
296
  float left = attachmentData[attachmentIndex * 2 + 1];
@@ -42,7 +42,7 @@ class TextLayoutManager {
42
42
  * Measures `attributedString` using native text rendering infrastructure.
43
43
  */
44
44
  TextMeasurement measure(
45
- AttributedStringBox attributedStringBox,
45
+ AttributedStringBox const &attributedStringBox,
46
46
  ParagraphAttributes paragraphAttributes,
47
47
  LayoutConstraints layoutConstraints) const;
48
48
 
@@ -52,7 +52,7 @@ class TextLayoutManager {
52
52
  */
53
53
  TextMeasurement measureCachedSpannableById(
54
54
  int64_t cacheId,
55
- ParagraphAttributes paragraphAttributes,
55
+ ParagraphAttributes const &paragraphAttributes,
56
56
  LayoutConstraints layoutConstraints) const;
57
57
 
58
58
  /*
@@ -60,8 +60,8 @@ class TextLayoutManager {
60
60
  * infrastructure.
61
61
  */
62
62
  LinesMeasurements measureLines(
63
- AttributedString attributedString,
64
- ParagraphAttributes paragraphAttributes,
63
+ AttributedString const &attributedString,
64
+ ParagraphAttributes const &paragraphAttributes,
65
65
  Size size) const;
66
66
 
67
67
  /*
@@ -73,17 +73,17 @@ class TextLayoutManager {
73
73
  private:
74
74
  TextMeasurement doMeasure(
75
75
  AttributedString attributedString,
76
- ParagraphAttributes paragraphAttributes,
76
+ ParagraphAttributes const &paragraphAttributes,
77
77
  LayoutConstraints layoutConstraints) const;
78
78
 
79
79
  TextMeasurement doMeasureMapBuffer(
80
80
  AttributedString attributedString,
81
- ParagraphAttributes paragraphAttributes,
81
+ ParagraphAttributes const &paragraphAttributes,
82
82
  LayoutConstraints layoutConstraints) const;
83
83
 
84
84
  LinesMeasurements measureLinesMapBuffer(
85
- AttributedString attributedString,
86
- ParagraphAttributes paragraphAttributes,
85
+ AttributedString const &attributedString,
86
+ ParagraphAttributes const &paragraphAttributes,
87
87
  Size size) const;
88
88
 
89
89
  void *self_;
@@ -0,0 +1 @@
1
+ 5e73c4b0c5a2eb8b68984e795543abb9a69f17d858444e5aff6f85d212f2ac54
@@ -0,0 +1 @@
1
+ ed1defcffdcdf21cd37107aeae8ab5e71333c9a4d8463301c6c1b7666b1f8bea9ba1bdb085f6118d5f62fa53788e40cabbb2b3b7a9c3a61e066e9e87ddacef97
@@ -3,14 +3,14 @@
3
3
  "component": {
4
4
  "group": "com.facebook.react",
5
5
  "module": "react-native",
6
- "version": "0.0.0-20220102-2009-e22b760e5",
6
+ "version": "0.0.0-20220106-2009-252b2a63c",
7
7
  "attributes": {
8
8
  "org.gradle.status": "release"
9
9
  }
10
10
  },
11
11
  "createdBy": {
12
12
  "gradle": {
13
- "version": "7.3"
13
+ "version": "7.3.3"
14
14
  }
15
15
  },
16
16
  "variants": [
@@ -131,13 +131,13 @@
131
131
  ],
132
132
  "files": [
133
133
  {
134
- "name": "react-native-0.0.0-20220102-2009-e22b760e5.aar",
135
- "url": "react-native-0.0.0-20220102-2009-e22b760e5.aar",
136
- "size": 32635439,
137
- "sha512": "a843a7c69c76c383dd79b74e93b0d1c08962be327bcacc48f877a7900d71628cd8add5636dc72d9bec50740df4bea2423e53fe2622c7c81bc5fea2d0c5c78eed",
138
- "sha256": "ca1b611ac65ee3e0f3795f87ef397f74a0d6807c2e15a64576df2d608a81e15f",
139
- "sha1": "95f093ed6d78ade796789972fcc83326e615e626",
140
- "md5": "b672cbb0cd2a98d004de90068fc0dd0b"
134
+ "name": "react-native-0.0.0-20220106-2009-252b2a63c.aar",
135
+ "url": "react-native-0.0.0-20220106-2009-252b2a63c.aar",
136
+ "size": 32631212,
137
+ "sha512": "ed1defcffdcdf21cd37107aeae8ab5e71333c9a4d8463301c6c1b7666b1f8bea9ba1bdb085f6118d5f62fa53788e40cabbb2b3b7a9c3a61e066e9e87ddacef97",
138
+ "sha256": "5e73c4b0c5a2eb8b68984e795543abb9a69f17d858444e5aff6f85d212f2ac54",
139
+ "sha1": "89e46986e0b131de573da5f7ce97129403e5f0fc",
140
+ "md5": "66cc6cb85200782877dea6a140dd8b38"
141
141
  }
142
142
  ]
143
143
  },
@@ -258,13 +258,13 @@
258
258
  ],
259
259
  "files": [
260
260
  {
261
- "name": "react-native-0.0.0-20220102-2009-e22b760e5.aar",
262
- "url": "react-native-0.0.0-20220102-2009-e22b760e5.aar",
263
- "size": 32635439,
264
- "sha512": "a843a7c69c76c383dd79b74e93b0d1c08962be327bcacc48f877a7900d71628cd8add5636dc72d9bec50740df4bea2423e53fe2622c7c81bc5fea2d0c5c78eed",
265
- "sha256": "ca1b611ac65ee3e0f3795f87ef397f74a0d6807c2e15a64576df2d608a81e15f",
266
- "sha1": "95f093ed6d78ade796789972fcc83326e615e626",
267
- "md5": "b672cbb0cd2a98d004de90068fc0dd0b"
261
+ "name": "react-native-0.0.0-20220106-2009-252b2a63c.aar",
262
+ "url": "react-native-0.0.0-20220106-2009-252b2a63c.aar",
263
+ "size": 32631212,
264
+ "sha512": "ed1defcffdcdf21cd37107aeae8ab5e71333c9a4d8463301c6c1b7666b1f8bea9ba1bdb085f6118d5f62fa53788e40cabbb2b3b7a9c3a61e066e9e87ddacef97",
265
+ "sha256": "5e73c4b0c5a2eb8b68984e795543abb9a69f17d858444e5aff6f85d212f2ac54",
266
+ "sha1": "89e46986e0b131de573da5f7ce97129403e5f0fc",
267
+ "md5": "66cc6cb85200782877dea6a140dd8b38"
268
268
  }
269
269
  ]
270
270
  }
@@ -0,0 +1 @@
1
+ 4a4779d17b5f7ed2e6d4182715c9d80ee5755ebf2cad54a38f8c1cd985cedc63
@@ -0,0 +1 @@
1
+ 7c468141105d9981b2b6ed1d59fa1b23e065e571c9d3c237f700596012dc33850960a236e82b56e92f16f7c52b5998d8f69ea72b73ccd1084556b8a34d5e490b
@@ -9,7 +9,7 @@
9
9
  <modelVersion>4.0.0</modelVersion>
10
10
  <groupId>com.facebook.react</groupId>
11
11
  <artifactId>react-native</artifactId>
12
- <version>0.0.0-20220102-2009-e22b760e5</version>
12
+ <version>0.0.0-20220106-2009-252b2a63c</version>
13
13
  <packaging>aar</packaging>
14
14
  <name>ReactNative</name>
15
15
  <description>A framework for building native apps with React</description>
@@ -0,0 +1 @@
1
+ 45663437e201b776188694e2fad1340d86861d078c6c50fc43909cbe9952478c
@@ -0,0 +1 @@
1
+ 020c9906b13e79dcc79a151723b236551592b7f78a50e86b052dada18e984f2614242156d6644c9bf66cc6181a19ad8ecda33fe7e2ad78235e461779cc2551c8
@@ -3,11 +3,11 @@
3
3
  <groupId>com.facebook.react</groupId>
4
4
  <artifactId>react-native</artifactId>
5
5
  <versioning>
6
- <latest>0.0.0-20220102-2009-e22b760e5</latest>
7
- <release>0.0.0-20220102-2009-e22b760e5</release>
6
+ <latest>0.0.0-20220106-2009-252b2a63c</latest>
7
+ <release>0.0.0-20220106-2009-252b2a63c</release>
8
8
  <versions>
9
- <version>0.0.0-20220102-2009-e22b760e5</version>
9
+ <version>0.0.0-20220106-2009-252b2a63c</version>
10
10
  </versions>
11
- <lastUpdated>20220102201601</lastUpdated>
11
+ <lastUpdated>20220106201635</lastUpdated>
12
12
  </versioning>
13
13
  </metadata>
@@ -1 +1 @@
1
- e9dbe7b94b539ff34d7dd31f2dc25673
1
+ a5f50a777513f84525394b5c01eff179
@@ -1 +1 @@
1
- 5687eeb17185904bdc824f0a2efa11c162089e04
1
+ 1e58bd78757189f08d7d38271981a17cd23ca592
@@ -1 +1 @@
1
- bd9132f79493c4c593aeb0d06ae27306c3dea79aac5de0396deac99f48a7dc31
1
+ cd2c8cfaaaa6b0ba7429f5d2e5da38e99b3baf0f45583b880e2aa00e0779382b
@@ -1 +1 @@
1
- c568648483d7038da8f5f16451f0b4e919d8ec92c11659a751b9d801332a7592ba82830a4b8bb37e0f1b8d28955bac00956066d29f558c754272cd9d59c14c9c
1
+ 615dc040e335053939ce72b260c434530128dfb0f5c4151e742db9eaf219f01e974460e422eb9df316eb22fdd2fba02c81c23d906c9c2b41ba90d6e31d63fb6a