Browse Source

Replaced Close asset. Removed bounce animation glitch

localNotifications
Marcos Rodriguez Vélez 6 years ago
parent
commit
1de07ee552
  1. 2
      BlueComponents.js
  2. BIN
      img/close.png
  3. BIN
      img/close@2x.png
  4. BIN
      img/close@3x.png
  5. 26
      screen/wallets/list.js

2
BlueComponents.js

@ -158,7 +158,7 @@ export const BlueNavigationStyle = (navigation, withNavigationCloseButton = fals
headerTintColor: '#0c2550',
headerRight: withNavigationCloseButton ? (
<TouchableOpacity style={{ marginHorizontal: 16 }} onPress={() => navigation.goBack(null)}>
<Icon name="times" size={24} type="font-awesome" color="#0c2550" />
<Image source={require('./img/close.png')} />
</TouchableOpacity>
) : null,
headerBackTitle: null,

BIN
img/close.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 B

BIN
img/close@2x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 511 B

BIN
img/close@3x.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

26
screen/wallets/list.js

@ -1,5 +1,5 @@
import React, { Component } from 'react';
import { View, TouchableOpacity, Text, FlatList, RefreshControl, LayoutAnimation, ScrollView } from 'react-native';
import { View, TouchableOpacity, Text, FlatList, RefreshControl, ScrollView } from 'react-native';
import {
BlueTransactionOnchainIcon,
BlueLoading,
@ -21,23 +21,6 @@ let A = require('../../analytics');
/** @type {AppStorage} */
let BlueApp = require('../../BlueApp');
let loc = require('../../loc');
const customLayoutSpringAnimation = {
duration: 300,
create: {
type: LayoutAnimation.Types.spring,
property: LayoutAnimation.Properties.scaleXY,
springDamping: 0.7,
},
update: {
type: LayoutAnimation.Types.spring,
springDamping: 0.7,
},
delete: {
type: LayoutAnimation.Types.spring,
property: LayoutAnimation.Properties.scaleXY,
springDamping: 0.7,
},
};
export default class WalletsList extends Component {
static navigationOptions = ({ navigation }) => ({
@ -66,12 +49,6 @@ export default class WalletsList extends Component {
async componentDidMount() {
this.refreshFunction();
LayoutAnimation.configureNext(customLayoutSpringAnimation);
this.setState({
isLoading: false,
dataSource: BlueApp.getTransactions(),
});
}
/**
@ -149,7 +126,6 @@ export default class WalletsList extends Component {
onSnapToItem(index) {
console.log('onSnapToItem', index);
this.lastSnappedTo = index;
LayoutAnimation.configureNext(customLayoutSpringAnimation);
if (index < BlueApp.getWallets().length) {
// not the last

Loading…
Cancel
Save