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:
Jorge Cabiedes Acosta
2025-04-03 17:23:17 -07:00
committed by Facebook GitHub Bot
parent 70260f4d8b
commit e3f7c8f456
@@ -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.");