callstack / callstack/react-native-paper
How to place component next to Accordion List header?
- Langage dominant
- TypeScript
- Étoiles
- 14.5k
- Forks
- 2.2k
- Merge moyen
- 5 j 23 h
- PR mergées (30 j)
- 12
Description
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?

## 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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire l’exemple Snack lié et examiner issue #3065 pour le comportement existant de AccordionList. Déterminez si le composant demandé peut être placé à côté du header tout en restant activable indépendamment par pression ; l’issue est terminée lorsque ce comportement est clairement confirmé ou que la modification requise est délimitée à un point d’entrée précis du composant.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- react-native, typescript
- Domaine
- frontend, mobile
- Type d'issue
- Fonctionnalité
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 25/100