mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
ADD: Linear gradient props
This commit is contained in:
parent
63604e83dc
commit
3e3b5fc5da
2 changed files with 16 additions and 0 deletions
|
@ -345,6 +345,7 @@ export class BlueWalletNavigationHeader extends Component {
|
|||
<LinearGradient
|
||||
colors={WalletGradient.gradientsFor(this.state.wallet.type)}
|
||||
style={{ padding: 15, minHeight: 140, justifyContent: 'center' }}
|
||||
{...WalletGradient.linearGradientProps(this.state.wallet.type)}
|
||||
>
|
||||
<Image
|
||||
source={(() => {
|
||||
|
|
|
@ -72,6 +72,21 @@ export default class WalletGradient {
|
|||
return gradient;
|
||||
}
|
||||
|
||||
static linearGradientProps(type) {
|
||||
let props;
|
||||
switch (type) {
|
||||
case MultisigHDWallet.type:
|
||||
/* Example
|
||||
props = { start: { x: 0, y: 0 } };
|
||||
https://github.com/react-native-linear-gradient/react-native-linear-gradient
|
||||
*/
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
return props;
|
||||
}
|
||||
|
||||
static headerColorFor(type) {
|
||||
let gradient;
|
||||
switch (type) {
|
||||
|
|
Loading…
Add table
Reference in a new issue