ADD: Linear gradient props

This commit is contained in:
marcosrdz 2020-12-11 12:35:47 -05:00 committed by Overtorment
parent 63604e83dc
commit 3e3b5fc5da
2 changed files with 16 additions and 0 deletions

View file

@ -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={(() => {

View file

@ -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) {