mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-27 19:25:11 +08:00
Finish AccessibilityInfo implementation
Summary: This PR is based on files ericvicenti gave me. Specifically, he gave me: - AccessibilityInfo.android.js - AccessibilityInfo.ios.js - AccessibilityInfoModule.java Before this change, only a native iOS implementation of AccessibilityInfo existed. This change includes: - A native Android implementation of AccessibilityInfo. - JavaScript wrappers for the AccessibilityInfo module for both iOS and Android. - UIExplorer changes to illustrate how to use AccessibilityInfo on iOS and Android. - Documentation for the AccessibilityInfo APIs. **Test plan (required)** Tested the UIExplorer AccessibilityInfo example on iOS and Android with the screen reader both enabled and disabled. Adam Comella Microsoft Corp. Closes https://github.com/facebook/react-native/pull/12273 Reviewed By: mkonicek Differential Revision: D4527224 Pulled By: ericvicenti fbshipit-source-id: d04638465ccbdbb35ecfc9504daaeb8e33aab57a
This commit is contained in:
committed by
Facebook Github Bot
parent
41f1bcc5ac
commit
04790f1a78
@@ -28,6 +28,7 @@ if (__DEV__) {
|
||||
// Export React, plus some native additions.
|
||||
const ReactNative = {
|
||||
// Components
|
||||
get AccessibilityInfo() { return require('AccessibilityInfo'); },
|
||||
get ActivityIndicator() { return require('ActivityIndicator'); },
|
||||
get ART() { return require('ReactNativeART'); },
|
||||
get Button() { return require('Button'); },
|
||||
|
||||
Reference in New Issue
Block a user