Repository navigation
Swipeable hides components from VoiceOver #4292
Replies: 1 comment 1 reply
|
This is expected with the current implementation, but there is a clean workaround. When Do not mount {item.hasActions ? (
<Swipeable renderRightActions={renderActions}>
<ChatRow item={item} />
</Swipeable>
) : (
<ChatRow item={item} />
)}If you must keep one tree (e.g. list virtualization), make sure the inner content explicitly opts back in: <Swipeable enabled={false}>
<View accessible accessibilityRole=button>
{/* row content */}
</View>
</Swipeable>If the inner |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I have a list of chats where 1-to-1 chats can be deleted with Swipeable actions and group chats can not. For group chats I do
enabled={false}and the underlying button keeps working and receives focus as it should, but items with Swipeable enabled get skipped by VoiceOver completely.It shouldn't happen, should it? Or is it the
GestureDetectorthat does it, since I can see thatenabledonly disables gestures in it, as it should?All reactions