Skip to content

Commit

Permalink
Fix header cart icon right behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeNg93 committed Feb 26, 2019
1 parent 825c361 commit 8cffe74
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ const width = Layout.window.width;

class SubscriptionSelectionScreen extends React.Component {
static navigationOptions = ({ navigation }) => {
const numOfItems = navigation.getParam('items');
return {
headerTitle: 'Choose your subscription',
headerBackTitle: null,
Expand Down Expand Up @@ -66,9 +67,7 @@ class SubscriptionSelectionScreen extends React.Component {
borderRadius: 5.5,
},
{
opacity: navigation.getParam('opacity')
? navigation.getParam('opacity')
: 0,
opacity: numOfItems ? 1 : 0,
},
]}
>
Expand All @@ -80,7 +79,7 @@ class SubscriptionSelectionScreen extends React.Component {
...commonStyles.textMediumCarmine,
}}
>
{navigation.getParam('items')}
{numOfItems}
</Text>
</View>
</View>
Expand Down

0 comments on commit 8cffe74

Please sign in to comment.