Skip to content

Commit 3a2701a

Browse files
committed
fix: initialize shadow node's counter value
1 parent 212b2a3 commit 3a2701a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/main/new_arch/react/renderer/components/ReactNativeEnrichedSpec/EnrichedTextInputShadowNode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class EnrichedTextInputShadowNode final
4747
const LayoutConstraints &layoutConstraints) const override;
4848

4949
private:
50-
int forceHeightRecalculationCounter_;
50+
int forceHeightRecalculationCounter_{0};
5151
std::shared_ptr<EnrichedTextInputMeasurementManager> measurementsManager_;
5252
};
5353
} // namespace facebook::react

0 commit comments

Comments
 (0)