Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to make a gradient background color same attachment below #10

Open
phanthinh opened this issue Oct 30, 2017 · 2 comments
Open

I want to make a gradient background color same attachment below #10

phanthinh opened this issue Oct 30, 2017 · 2 comments

Comments

@phanthinh
Copy link

Thank lib for support gradient background. However, i want to make a gradient background same attachment below and color from bottom to top. How i can setting it on this lib

Thank you so much
screen shot 2017-10-30 at 21 50 30

@heineiuo
Copy link
Owner

heineiuo commented Nov 1, 2017

Hi @phanthinh
I add a new prop points for custom gradient direction. Like below:

<AnimatedLinearGradient points={{start: {x: 0.5, y: 0}, end: {x: 0.5, y: 1}}} /> // this will generate a vertical direction gradient.

If you just want a static linear gradient , you can use react-native-linear-gradient directly.

@weathermanJM
Copy link

Currently This will not put the text on top. It will move the gradient down. Any Ideas?

<AnimatedLinearGradient customColors={mycolors.one} speed={1000} points {direction.horizontal}> <Text>Orange Fun</Text> </AnimatedLinearGradient>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants