Closed kchia closed 8 years ago
d99321e is a big commit that adds the 4 states of logic for this page.
In particular, note:
RecommendationPage
calls <RecommendationCard />
, passing it one of 4 recommendationCode
s as a prop.TestRec
, ReferCare
, FollowupRec
, ContactDoc
— is stored in a separate file of simple JSON: recommendations.js
Right now, the recommendationCode
is hardcoded in. In order to grab that dynamically, based on the results of the survey, we need to store the survey results in redux. Right now the survey results are just on the survey page's state, which gets lost as soon as that page is transitioned away from.
By the way, @kchia & @sharmilajesupaul , redux-persist
+ asyncStorage is already hooked up, courtesy of React Native Pro.
blocked by #28
TODO