display floating wallet balance #252

Merged
akinwale merged 2 commits from floating-wallet-balance into master 2018-08-24 12:10:31 +02:00
akinwale commented 2018-08-22 18:04:24 +02:00 (Migrated from github.com)
No description provided.
neb-b (Migrated from github.com) reviewed 2018-08-22 18:04:24 +02:00
skhameneh (Migrated from github.com) approved these changes 2018-08-24 04:50:11 +02:00
skhameneh (Migrated from github.com) left a comment

Minor comment

Minor comment
@ -0,0 +15,4 @@
const { balance, navigation } = this.props;
return (
<TouchableOpacity style={[floatingButtonStyle.container, floatingButtonStyle.bottomRight]}
skhameneh (Migrated from github.com) commented 2018-08-24 04:49:04 +02:00

Formatting, I would suggest:

      <TouchableOpacity
        style={[floatingButtonStyle.container, floatingButtonStyle.bottomRight]}
        onPress={() => {
          if (navigation) {
            navigation.navigate({ routeName: 'Wallet' });
          }
        }}
      >

Could also do:

      <TouchableOpacity
        style={[floatingButtonStyle.container, floatingButtonStyle.bottomRight]}
        onPress={() => navigation && navigation.navigate({ routeName: 'Wallet' })}
      >
Formatting, I would suggest: ``` <TouchableOpacity style={[floatingButtonStyle.container, floatingButtonStyle.bottomRight]} onPress={() => { if (navigation) { navigation.navigate({ routeName: 'Wallet' }); } }} > ``` Could also do: ``` <TouchableOpacity style={[floatingButtonStyle.container, floatingButtonStyle.bottomRight]} onPress={() => navigation && navigation.navigate({ routeName: 'Wallet' })} > ```
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-android#252
No description provided.