Skip to content

RectButton, BorderlessButton and BaseButton don't have support for View ref methods #2894

@tonihm96

Description

@tonihm96

Description

When passing refs to any of the aforementioned components, none of react-native's View methods are available, which means it is not possible to call measure or measureLayout for these components.

Steps to reproduce

  1. Pass ref down to RectButton, BorderlessButton or BaseButton
  2. Try to call ref.current.measure()

Snack or a link to a repository

https://snack.expo.dev/@tonihm96/react-native-gesture-handler-example

Gesture Handler version

2.14.0

React Native version

0.73.6

Platforms

Android, iOS, Web, MacOS

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

Pixel 2 XL UpsideDownCake

Acknowledgements

Yes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions