-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dpp): add epds survey on app #162
Conversation
} | ||
}); | ||
|
||
export default EpdsSurveyScreen; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ce fichier commence à être assez gros. Il pourrait être divisé en plusieurs composants, par exemple en créant un composant pour une réponse et/ou un composant qui contient la question et une liste de réponses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Je m'occupe de ça
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yannickjacqueline Possible de faire diviser ce fichier en plusieurs composants ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouais je vais faire déjà un composant qui affiche une question et ses réponses, et voire un deuxième composant qui va gérer le SwiperFlatList
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Du coup, j'ai fait un composant EpdsQuestion pour afficher une question avec ses réponses, et un EpdsFooter pour afficher les boutons, il prenait pas mal de places aussi. Et j'ai fait du ménage dans les styles aussi
Et faut savoir aussi que quand demain je brancherai le questionnaire au back, le tableau de questions/réponses déclaré au début va partir aussi donc ça fera des lignes en moins.
Je te laisse jeter un coup d'oeil et on pourra merger si t'es OK
Co-authored-by: Benjamin Morali <benjaminmorali4@hotmail.fr>
# [1.16.0](v1.15.1...v1.16.0) (2021-04-27) ### Features * **dpp:** add epds survey on app ([#162](#162)) ([384583f](384583f))
🎉 This PR is included in version 1.16.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Pour l'instant, j'ai ajouté 3 questions et réponses en dur dans l'app, et l'écran de résultats affiche simplement "Résultats".
Lorsque j'aurai terminé de mettre les questions et réponses dans le back, j'ajouterai la notion de points pour adapter le résultat