message: feat: added forwardRef to HStack and VStack
diff: @@ -174,9 +174,12 @@ if (__DEV__) {
  /**
  * A view that arranges its children in a horizontal line.
  */
  -export const HStack = (props: StackProps) => (
  - <Stack align="center" {...props} direction="row" />
  -)
  +export const HStack = React.forwardRef(function HStack(
  + props: StackProps,
  + ref: React.Ref<any>,
  +) {
  + return <Stack align="center" {...props} direction="row" ref={ref} />
  +})
  if (__DEV__) {
  HStack.displayName = "HStack"
  @@ -185,9 +188,12 @@ if (__DEV__) {
  /**
  * A view that arranges its children in a vertical line.
  */
  -export const VStack = (props: StackProps) => (
  - <Stack align="center" {...props} direction="column" />
  -)
  +export const VStack = React.forwardRef(function VStack(
  + props: StackProps,
  + ref: React.Ref<any>,
  +) {
  + return <Stack align="center" {...props} direction="column" ref={ref} />
  +})
  if (__DEV__) {
  VStack.displayName = "VStack"
  