From 30912da9fd4fd25ce07141054ce80f4c52cd68da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Rodriguez=20Ve=CC=81lez?= Date: Sun, 30 Sep 2018 04:51:52 -0400 Subject: [PATCH] FIX: Fixed weird transition animation from wallets to settings --- BlueComponents.js | 82 ++++++++++++++++++------------------------ screen/wallets/list.js | 21 +++++------ 2 files changed, 45 insertions(+), 58 deletions(-) diff --git a/BlueComponents.js b/BlueComponents.js index 624b85217..91a796dbb 100644 --- a/BlueComponents.js +++ b/BlueComponents.js @@ -358,54 +358,40 @@ export class BlueHeaderDefaultMain extends Component { render() { return ( - - { - // eslint-disable-next-line - if (this.props.onClose) this.props.onClose(); - }} - > - - - - - - -
- { - // eslint-disable-next-line - this.props.leftText - } - - } - rightComponent={ - - - - } - /> - +
+ { + // eslint-disable-next-line + this.props.leftText + } + + } + rightComponent={ + + + + } + /> ); } diff --git a/screen/wallets/list.js b/screen/wallets/list.js index 02c069355..8df65068e 100644 --- a/screen/wallets/list.js +++ b/screen/wallets/list.js @@ -28,17 +28,17 @@ let BlueApp = require('../../BlueApp'); let loc = require('../../loc'); export default class WalletsList extends Component { - static navigationOptions = { - header: ({ navigation }) => { - return ( - navigation.navigate('AddWallet')} - onClose={() => navigation.navigate('Settings')} - /> - ); + static navigationOptions = ({ navigation }) => ({ + headerStyle: { + backgroundColor: '#FFFFFF', + borderBottomWidth: 0, }, - }; + headerRight: ( + navigation.navigate('Settings')}> + + + ), + }); constructor(props) { super(props); @@ -269,6 +269,7 @@ export default class WalletsList extends Component { return ( + this.props.navigation.navigate('AddWallet')} /> {