mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix <Image> components not being able to be set as focusable for Voice Over
Summary: Image component was missing an override which enables setting accessibility values and properties. The main issue is the lack of this prevented Image component from being accessed by VoiceOver. Changelog: [iOS][Fixed] - Fixed accessible prop no-opts on Image components Reviewed By: joevilches Differential Revision: D72410952 fbshipit-source-id: 5612205aca1710fe4bfed6132efeb59065ebf0b3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
70260f4d8b
commit
e3f7c8f456
+5
@@ -69,6 +69,11 @@ using namespace facebook::react;
|
||||
[super updateProps:props oldProps:oldProps];
|
||||
}
|
||||
|
||||
- (NSObject *)accessibilityElement
|
||||
{
|
||||
return _imageView;
|
||||
}
|
||||
|
||||
- (void)updateState:(const State::Shared &)state oldState:(const State::Shared &)oldState
|
||||
{
|
||||
RCTAssert(state, @"`state` must not be null.");
|
||||
|
||||
Reference in New Issue
Block a user