Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • benhayward.ben/mobile-native
  • minds/mobile-native
  • msantang78/mobile-native
  • edgebal/mobile-native
  • msantang78_test/mobile-native
  • duyquoc/mobile-native
  • priestd09/mobile-native
  • eiennohi/mobile-native
  • omadrid/mobile-native
  • sieuhuflit/mobile-native
  • juanmsolaro/mobile-native
  • ascenderking/mobile-native
  • jim-toth/mobile-native
  • thinnakrit/mobile-native-lang
  • project_connection/mobile-native
  • AaronTheBruce/mobile-native
  • cormac.kantargis.hack/mobile-native
  • xthread/mobile-native
  • Paulnguyenun/mobile-native
  • lustigdev/mobile-native
  • GubbenOlsson/mobile-native
  • calvinoea/mobile-native
  • namesty/mobile-native
  • mrrobot16/mobile-native
  • eliobricenov/mobile-native
  • bedriguler/mobile-native
  • m994/mobile-native
  • threetoes/mobile-native
  • liangel/mobile-native
  • hosituan/mobile-native
  • nacef.otay/mobile-native
  • madibaa/mobile-native
  • valentin129/mobile-native
  • manishoo/mobile-native1
  • th2tran/minds-mobile-native
35 results
Show changes
Commits on Source (4)
......@@ -52,7 +52,6 @@ export default class WalletScreen extends Component {
}
componentWillMount() {
if (FeaturesService.has('crypto')) {
this.disposeEnter = this.props.navigation.addListener('didFocus', async () => {
if ((await this.props.wallet.canShowOnboarding()) && (!this.props.user.hasRewards() || !this.props.user.hasEthWallet())) {
......@@ -74,7 +73,7 @@ export default class WalletScreen extends Component {
<View style={CommonStyle.flexContainer}>
<ScrollView style={ styles.mainContainer }
keyboardShouldPersistTaps='always'>
<WalletBalanceTokens />
<WalletBalanceTokens navigation={this.props.navigation}/>
<WalletOverviewView />
<WalletScoresView />
<View>
......
......@@ -23,8 +23,31 @@ export default class WalletBalanceTokens extends Component {
this.props.wallet.refresh();
}
render() {
componentWillMount() {
this.disposeEnter = this.props.navigation.addListener('didFocus', (s) => {
// ignore back navigation
if (s.action.type === 'Navigation/NAVIGATE' && s.action.routeName === 'Wallet') {
this.triggerRender(this.props.wallet);
}
});
}
triggerRender(wallet) {
wallet.ledger.list.clearList();
wallet.refresh(true);
}
/**
* On component unmount
*/
componentWillUnmount() {
// clear data to free memory
this.wallet.ledger.list.clearList();
this.disposeEnter.remove();
}
render() {
let addresses = null;
if (this.props.wallet.addresses) {
......