callstack / callstack/react-native-paper
Handling accessibility feature boldTextEnabled
- Langage dominant
- TypeScript
- Étoiles
- 14.5k
- Forks
- 2.2k
- Merge moyen
- 5 j 23 h
- PR mergées (30 j)
- 12
Description
**Is your feature request related to a problem? Please describe.**
Problem is there is no general way to set text bold from one place. I would have to check `AccessibilityInfo.isBoldTextEnabled()` in a hook. And then call that hook everywhere I use `` -component.
**Describe the solution you'd like**
A simple way to provide this info directly or automatically in `` and it would handle the rest. Make the text bold if it needs to based on the accessibility-feature's state.
**Describe alternatives you've considered**
Making a hook and custom text-component that I wrap Paper Text-component inside. But that is not gonna scale very well.
**Additional context**
-
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par suivre la manière dont PaperProvider fournit le contexte et dont le composant Text de Paper gère les styles de texte, puis examinez le comportement de AccessibilityInfo.isBoldTextEnabled() de React Native. Le résultat demandé est un moyen, au niveau du provider, d’appliquer automatiquement le texte en gras lorsque le réglage d’accessibilité est activé, sans encapsuler chaque composant Text dans un hook personnalisé. Aucun fichier ni test précis n’est indiqué ; identifiez donc d’abord le provider concerné, le point d’entrée de Text et les tests d’accessibilité existants.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- react-native, typescript
- Domaine
- accessibility, frontend, mobile
- Type d'issue
- Fonctionnalité
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100