callstack / callstack/react-native-paper

How to place component next to Accordion List header?

オープン
#3,125 コメント 1 件 リアクション 3 件 担当者 0 名 GitHub で見る
repro provided
主要言語
TypeScript
スター
14.5k
フォーク
2.2k
平均マージ
5日 23時間
マージ済み PR(30日)
12

説明

Essentially I am trying to do the same as this user:
https://github.com/callstack/react-native-paper/issues/3065

I created a smaller snack example of what goes wrong:
https://snack.expo.dev/ZLAdZjkes

In the original issue, it's mentioned that it's not possible to make components passed to "left" pressable. But perhaps it is possible to place a component next to the header, without moving the entire accordion list?
Is this possible?

![image](https://user-images.githubusercontent.com/41551215/159132787-40b5e80a-982f-49f3-9528-801f4addc4bc.png)

## Some context:
I am using an accordionlist where each item in the list would be a switch and some text, representing a filter to activate/deactivate. so essentially a long options list. The switch in the header would have the role of enabling or disabling all filters.

react-native: ^0.67.4
react-native-paper: ^4.11.2
react-native-vector-icons: ^9.1.0

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

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

調査の方向性

まず、リンクされている Snack の例を再現し、AccordionList の既存の動作について issue #3065 を確認します。要求されたコンポーネントを header の横に配置し、独立して押下可能な状態を維持できるかを判断します。その動作が明確に確認されるか、必要な変更の範囲が特定のコンポーネントのエントリーポイントに限定された時点で issue は完了です。

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

評価

技術スタック
react-native, typescript
領域
frontend, mobile
issue の種類
機能追加
難易度
5/5
見積もり時間
1週間以上
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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