mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
FIX: Fixed weird transition animation from wallets to settings
This commit is contained in:
parent
3cfe63a7f6
commit
30912da9fd
@ -358,54 +358,40 @@ export class BlueHeaderDefaultMain extends Component {
|
||||
render() {
|
||||
return (
|
||||
<SafeAreaView style={{ backgroundColor: '#FFFFFF' }}>
|
||||
<View style={{ height: 120 }}>
|
||||
<TouchableOpacity
|
||||
onPress={() => {
|
||||
// eslint-disable-next-line
|
||||
if (this.props.onClose) this.props.onClose();
|
||||
}}
|
||||
>
|
||||
<View style={stylesBlueIcon.box}>
|
||||
<View style={stylesBlueIcon.ballTransparrent}>
|
||||
<Icon name="kebab-horizontal" size={22} type="octicon" color={BlueApp.settings.foregroundColor} />
|
||||
</View>
|
||||
</View>
|
||||
</TouchableOpacity>
|
||||
<Header
|
||||
{...this.props}
|
||||
backgroundColor="#FFFFFF"
|
||||
outerContainerStyles={{
|
||||
borderBottomColor: 'transparent',
|
||||
borderBottomWidth: 0,
|
||||
}}
|
||||
statusBarProps={{ barStyle: 'default' }}
|
||||
leftComponent={
|
||||
<Text
|
||||
style={{
|
||||
fontWeight: 'bold',
|
||||
fontSize: 34,
|
||||
color: BlueApp.settings.foregroundColor,
|
||||
}}
|
||||
>
|
||||
{
|
||||
// eslint-disable-next-line
|
||||
this.props.leftText
|
||||
}
|
||||
</Text>
|
||||
}
|
||||
rightComponent={
|
||||
<TouchableOpacity
|
||||
onPress={this.props.onNewWalletPress}
|
||||
style={{
|
||||
height: 48,
|
||||
alignSelf: 'flex-end',
|
||||
}}
|
||||
>
|
||||
<BluePlusIcon />
|
||||
</TouchableOpacity>
|
||||
}
|
||||
/>
|
||||
</View>
|
||||
<Header
|
||||
{...this.props}
|
||||
backgroundColor="#FFFFFF"
|
||||
outerContainerStyles={{
|
||||
borderBottomColor: 'transparent',
|
||||
borderBottomWidth: 0,
|
||||
}}
|
||||
statusBarProps={{ barStyle: 'default' }}
|
||||
leftComponent={
|
||||
<Text
|
||||
style={{
|
||||
fontWeight: 'bold',
|
||||
fontSize: 34,
|
||||
color: BlueApp.settings.foregroundColor,
|
||||
}}
|
||||
>
|
||||
{
|
||||
// eslint-disable-next-line
|
||||
this.props.leftText
|
||||
}
|
||||
</Text>
|
||||
}
|
||||
rightComponent={
|
||||
<TouchableOpacity
|
||||
onPress={this.props.onNewWalletPress}
|
||||
style={{
|
||||
height: 48,
|
||||
alignSelf: 'flex-end',
|
||||
}}
|
||||
>
|
||||
<BluePlusIcon />
|
||||
</TouchableOpacity>
|
||||
}
|
||||
/>
|
||||
</SafeAreaView>
|
||||
);
|
||||
}
|
||||
|
@ -28,17 +28,17 @@ let BlueApp = require('../../BlueApp');
|
||||
let loc = require('../../loc');
|
||||
|
||||
export default class WalletsList extends Component {
|
||||
static navigationOptions = {
|
||||
header: ({ navigation }) => {
|
||||
return (
|
||||
<BlueHeaderDefaultMain
|
||||
leftText={loc.wallets.list.title}
|
||||
onNewWalletPress={() => navigation.navigate('AddWallet')}
|
||||
onClose={() => navigation.navigate('Settings')}
|
||||
/>
|
||||
);
|
||||
static navigationOptions = ({ navigation }) => ({
|
||||
headerStyle: {
|
||||
backgroundColor: '#FFFFFF',
|
||||
borderBottomWidth: 0,
|
||||
},
|
||||
};
|
||||
headerRight: (
|
||||
<TouchableOpacity style={{ marginHorizontal: 16 }} onPress={() => navigation.navigate('Settings')}>
|
||||
<Icon name="kebab-horizontal" size={22} type="octicon" color={BlueApp.settings.foregroundColor} />
|
||||
</TouchableOpacity>
|
||||
),
|
||||
});
|
||||
|
||||
constructor(props) {
|
||||
super(props);
|
||||
@ -269,6 +269,7 @@ export default class WalletsList extends Component {
|
||||
|
||||
return (
|
||||
<SafeBlueArea>
|
||||
<BlueHeaderDefaultMain leftText={loc.wallets.list.title} onNewWalletPress={() => this.props.navigation.navigate('AddWallet')} />
|
||||
<WalletsCarousel
|
||||
data={BlueApp.getWallets().concat(false)}
|
||||
handleClick={index => {
|
||||
|
Loading…
Reference in New Issue
Block a user