Skip to content

Repository files navigation

react-native-accessibility-props

Get cross platform accessibily props for react-native and react-native-web.

Usage

import { Pressable } from "react-native";
import { getAccessibilityStateProps } from "react-native-accessibility-props";

function MyComponent() {
  return (
    <Pressable
      accessibilityRole="radio"
      accessibilityLabel="label"
      {...getAccessibilityStateProps({ checked: true })}
    >
      Example
    </Pressable>
  );
}

About

Get cross platform accessibily props for react-native and react-native-web

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages