diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.h b/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.h index fdb0a9a8f8d..a0742b29827 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.h +++ b/packages/react-native/ReactCommon/react/renderer/components/view/BaseTouch.h @@ -22,39 +22,39 @@ struct BaseTouch { /* * The coordinate of point relative to the root component in points. */ - Point pagePoint; + Point pagePoint{}; /* * The coordinate of point relative to the target component in points. */ - Point offsetPoint; + Point offsetPoint{}; /* * The coordinate of point relative to the screen component in points. */ - Point screenPoint; + Point screenPoint{}; /* * An identification number for each touch point. */ - int identifier; + int identifier{0}; /* * The tag of a component on which the touch point started when it was first * placed on the surface, even if the touch point has since moved outside the * interactive area of that element. */ - Tag target; + Tag target{0}; /* * The force of the touch. */ - Float force; + Float force{0.0f}; /* * The time in seconds when the touch occurred or when it was last mutated. */ - Float timestamp; + Float timestamp{0.0f}; /* * The particular implementation of `Hasher` and (especially) `Comparator`