react-native-accessibility-wrapper
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

React Native Accessibility Wrapper

A wrapper for iOS that works as a View and allows you to set the order that elements should be read by Voice Over


Installation

# Using npm
npm install react-native-accessibility-wrapper

# Using yarn
yarn add react-native-accessibility-wrapper

# Install pods
cd ios && pod install && cd ..

Usage

import { Text } from 'react-native';
import Icon from 'your-icon-library';
import AccessibilityWrapper from "react-native-accessibility-wrapper";

<AccessibilityWrapper
  style={{ flex: 1, flexDirection: 'row' }}
  elements={[titleRef, leftIconRef, rightIconRef]}
>
  <Icon ref={leftIconRef} name="back" />

  <Text ref={titleRef}>Title</Text>

  <Icon ref={rightIconRef} name="save" />
</AccessibilityWrapper>

Example

Without Wrapper With Wrapper
without wrapper with wrapper

License

MIT

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.0201latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.0201
1.0.01

Package Sidebar

Install

npm i react-native-accessibility-wrapper

Weekly Downloads

202

Version

1.1.0

License

MIT

Unpacked Size

40.7 kB

Total Files

22

Last publish

Collaborators

  • ezeleites