react-navigation / react-navigation/react-navigation.github.io
Open a modal from a tab bar
Personne n'a encore pris cette issue.
- Langage dominant
- JavaScript
- Étoiles
- 324
- Forks
- 2k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
Moved over from https://github.com/react-navigation/react-navigation/issues/3003
@spencercarli came up with this solution: https://snack.expo.io/SyJKMkFUM
We might need to change the API a bit to make it cleaner but we can document this approach for now!
- If you're suggesting a change/improvement, tell us how it should work
It would be great to get documentation done for this "open modal from tab bar" layout. I've seen it asked a bunch of times in different places as it's a very common/popular requirement.
While not as helpful as writing documentation myself, here are some of the places this was asked, to show it would be useful to have it in the official docs:
- https://stackoverflow.com/questions/46725173/react-navigation-tabnavigator-show-modal
- https://stackoverflow.com/questions/42731093/how-to-push-a-modal-screen-using-reactnavigation
- https://stackoverflow.com/questions/45520898/react-navigation-and-modal-tab-item
- https://stackoverflow.com/questions/46725173/react-navigation-tabnavigator-show-modal
- https://stackoverflow.com/questions/46106117/tabnavigator-with-a-modal-popup-with-react-navigation-like-instagram
- https://stackoverflow.com/questions/42398911/how-do-i-make-a-tabnavigator-button-push-a-modal-screen-with-react-navigation
- https://github.com/react-community/react-navigation/pull/525
- https://github.com/react-community/react-navigation/issues/314
- https://github.com/react-community/react-navigation/issues/1059
- https://github.com/react-community/react-navigation/issues/1576
- https://github.com/react-community/react-navigation/issues/2259
- https://github.com/react-community/react-navigation/issues/1734
- https://github.com/react-community/react-navigation/issues/770
@TomAtterton seems to have a solution in this issue
https://github.com/react-community/react-navigation/issues/1576
He also left the same comment here:
Anyway, best practice or not, Tom seems to have the only solution? Maybe he could give a slightly longer form answer and that can be used for docs? @spencercarli
I will try to write something up potentially.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Examinez la solution Expo Snack liée ainsi que l’issue associée et les discussions sur Stack Overflow afin de comprendre la disposition proposée de barre d’onglets vers modal. Documentez cette approche dans la documentation officielle du projet, avec un exemple complet et toutes les réserves concernant l’API ; la tâche sera considérée comme terminée lorsque les utilisateurs pourront suivre l’exemple documenté pour ouvrir un modal depuis une barre d’onglets.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- javascript, react-native
- Domaine
- documentation
- Type d'issue
- Documentation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100