Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

VoiceOver/TalkBack items inside Carousel/Flatlist

オープン
#321 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

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

調査の方向性

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

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

説明

Is there an existing issue for this?
  • I have searched the existing issues
Code of Conduct
  • 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:


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<FlatList<(typeof data)[number]>>(null);

  const renderItem: ListRenderItem<(typeof data)[number]> = ({ item }) => {
    return (
      <View>
        <Text accessibilityRole="header">item.header<Text />
        <Text accessibilityRole="summary">item.text<Text />
      <View />
    );
  };

  return (
    <FlatList
      ref={flatListRef}
      data={data}
      renderItem={renderItem}
      accessible={true}
      accessibilityLabel="Carousel"
      accessibilityRole="adjustable"
      accessibilityActions={[{ name: 'increment' }, { name: 'decrement' }]}
      onAccessibilityAction={(event: AccessibilityActionEvent) => {
        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,
        });
      }}
    />
  );
};
主要言語
TypeScript
スター
295
フォーク
22
平均マージ
20分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FormidableLabs/react-native-ama のほかの issue

FormidableLabs/react-native-ama の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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