sendAccessibilityEvent() — react Function Reference
Architecture documentation for the sendAccessibilityEvent() function in ReactNativePublicCompat.js from the react codebase.
Entity Profile
Dependency Diagram
graph TD 1341036e_b568_a036_c13f_c52226e19704["sendAccessibilityEvent()"] c8cde18a_a62b_2ad5_9e88_a5d655a07f02["ReactNativePublicCompat.js"] 1341036e_b568_a036_c13f_c52226e19704 -->|defined in| c8cde18a_a62b_2ad5_9e88_a5d655a07f02 style 1341036e_b568_a036_c13f_c52226e19704 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/react-native-renderer/src/ReactNativePublicCompat.js lines 190–211
export function sendAccessibilityEvent(handle: any, eventType: string) {
const nativeTag =
handle._nativeTag != null
? handle._nativeTag
: getNativeTagFromPublicInstance(handle);
if (nativeTag == null) {
if (__DEV__) {
console.error(
"sendAccessibilityEvent was called with a ref that isn't a " +
'native component. Use React.forwardRef to get access to the underlying native component',
);
}
return;
}
const node = getNodeFromPublicInstance(handle);
if (node != null) {
nativeFabricUIManager.sendAccessibilityEvent(node, eventType);
} else {
legacySendAccessibilityEvent(nativeTag, eventType);
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does sendAccessibilityEvent() do?
sendAccessibilityEvent() is a function in the react codebase, defined in packages/react-native-renderer/src/ReactNativePublicCompat.js.
Where is sendAccessibilityEvent() defined?
sendAccessibilityEvent() is defined in packages/react-native-renderer/src/ReactNativePublicCompat.js at line 190.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free