I\'m new to React and React Native. At the moment for each component I\'m breaking the code into 2 separate files:
index.js
i'm sending noFooter boolean prop in a style sheet
Testing
and receiving it like
mainFooterCont: noFooter => ({ flexDirection: 'row', justifyContent: 'space-between', alignItems: 'flex-end', paddingBottom: noFooter ? 0 : 20, paddingTop: Metrics.ratio(noFooter ? 0 : 5), }),