iyegoroff / react-native-text-gradient

Text gradient for React-Native (ON HIATUS)
MIT License
96 stars 32 forks source link

Gradient Isn't Working #14

Closed abdul-elah-js closed 6 years ago

abdul-elah-js commented 6 years ago

react-native -v 0.56.0 react-native-text-gradient -v 0.0.15

I had an issue with the .56 version and as your documentation says i patched it and it throws no error anymore,

but the gradient isn't showing on android although when i apply styles directly in the <LinearTextGradient ...> like fontWeight it works but not the gradient ..

i'm building an app for Android ..

here is my code

                  <LinearTextGradient start={{x: 0, y: 0}} end={{x: 1, y: 0}} colors={['red', 'blue']} style={{ fontWeight: 'bold' }}>
                    Dr. John Doe
                  </LinearTextGradient>

i tried removing it from any other style so it may be affecting the rendering of the gradient, but no luck still

abdul-elah-js commented 6 years ago

Didn't write the locations .. sorry for my mistake