FormidableLabs / FormidableLabs/react-native-ama

VoiceOver/TalkBack items inside Carousel/Flatlist

オープン
#321 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
295
フォーク
22
平均マージ
20分
マージ済み PR(30日)
2

説明

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Code of Conduct

- [x] I agree to follow this project's Code of Conduct

### Question

Hello, love your project! Although I can't find the way to VoiceOver items inside the Carousel. It captures the entire carousel and says that user has to swipe up or down to navigate through the carousel but in my opinion it would be nice to read the content of the focused item. Something like this:

```markdown

import { Carousel } from '@react-native-ama/extras';
import { Text } from '@react-native-ama/react-native';
import { View } from 'react-native';

const Component = () => {
const data = [
{ header: 'Title 1', text: 'Text 1' },
{ header: 'Title 2', text: 'Text 2' },
{ header: 'Title 3', text: 'Text 3' },
];
const flatListRef = React.useRef>(null);

const renderItem: ListRenderItem<(typeof data)[number]> = ({ item }) => {
return (

item.header
item.text

);
};

return (
{
const value = event.nativeEvent.actionName === 'increment' ? 1 : -1;
const newIndex = carouselIndexForScreenReader.current + value;

carouselIndexForScreenReader.current = clamp(newIndex, 0, data.length - 1);
flatListRef.current?.scrollToIndex({
index: carouselIndexForScreenReader.current,
});
}}
/>
);
};
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue の例を入口として、Carousel と FlatList について説明されている VoiceOver/TalkBack の挙動を再現します。関連する React Native のアクセシビリティ挙動を追跡し、インクリメント/デクリメントによるナビゲーションを維持しながら、フォーカスされた Carousel の項目がコンテンツをどのように公開すべきかを判断します。両プラットフォームで、フォーカスされた各項目をアクセシブルに読み上げ、ナビゲーションできれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react-native, typescript
領域
accessibility, mobile
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。