Skip to content

Feature: *ByLabelText to support accessibilityLabelledBy #1183

@mdjastrzebski

Description

@mdjastrzebski

Describe the Feature

Currently when using *ByLabelText it only gets the label value from accessibilityLabel props. The goal of this request is to get it also from control referred by accessibilityLabelledBy prop if present. This props refers to other view using its nativeID identifier.

Possible Implementations

  • expand current *ByLabelText predict to analyse both accessibilityLabel and text content of view referenced by accessibilityLabelledBy.
  • in the initial implementation we could assume that target view is Text, as most natural type for labels. Later we could use existing getNodeByText function to get its text.

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