Skip to content

Commit

Permalink
Scroll view hotfix for accountlist
Browse files Browse the repository at this point in the history
  • Loading branch information
gAndroid committed Apr 22, 2020
1 parent f6a2484 commit 3a69617
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 20 additions & 18 deletions src/components/screens/wallet/SifirAccountsListScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
StyleSheet,
TouchableOpacity,
ActivityIndicator,
ScrollView,
} from 'react-native';
import {connect} from 'react-redux';
import SifirWalletButton from '@elements/SifirWalletButton';
Expand Down Expand Up @@ -120,29 +121,30 @@ class SifirAccountsListScreen extends React.Component {
<ActivityIndicator size="large" color={AppStyle.mainColor} />
</View>
)}

<View style={styles.gridView}>
{btcWalletList.map((wallet, i) => (
<SifirWalletButton
key={wallet.label}
width={CARD_SIZE}
height={CARD_SIZE * 1.1}
walletInfo={wallet}
navigate={navigate}
/>
))}
{nodeInfo.map((info, i) => {
return (
<ScrollView>
<View style={styles.gridView}>
{btcWalletList.map((wallet, i) => (
<SifirWalletButton
key={info.alias}
key={wallet.label}
width={CARD_SIZE}
height={CARD_SIZE * 1.1}
walletInfo={info}
walletInfo={wallet}
navigate={navigate}
/>
);
})}
</View>
))}
{nodeInfo.map((info, i) => {
return (
<SifirWalletButton
key={info.alias}
width={CARD_SIZE}
height={CARD_SIZE * 1.1}
walletInfo={info}
navigate={navigate}
/>
);
})}
</View>
</ScrollView>
</View>
);
}
Expand Down

0 comments on commit 3a69617

Please sign in to comment.