Skip to content

Support Ref Property #2218

Closed
Closed
@DevinFrenze

Description

@DevinFrenze

name: Devin Frenze
about: Allowing references to more bottom sheet components
title: Support Ref Property
labels: enhancement
assignees: ''


Feature Request

Components such as BottomSheetTextInput and BottomSheetScrollView are missing ref properties. This is a request to add ref properties to them.

When I try to add a ref property to either of the above components. Typescript says that it has no such property.

Why it is needed

React Native's TextInput and ScrollView components have methods such as .blur() and .scrollTo(). These methods are unavailable on the corresponding bottom sheet counterpart components, which limits their utility.

Possible implementation

Usually this can be accomplished using React's forwardRef export.

Code sample

I don't have any example code for this functionality yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestinvalidThis doesn't seem right

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions