iyegoroff / react-native-text-gradient

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

It is giving error that text field must be inside the text component and when i add the text in text component it does not takes the styling from LinearTextGradient #59

Open shivams10 opened 1 year ago

shivams10 commented 1 year ago

I m tring this in my android studio.

acarkaan commented 1 year ago

same error

shivams10 commented 1 year ago

@acarkaan , you can use MaskedView from '@react-native-masked-view/masked-view' it worked for me.

acarkaan commented 1 year ago

@acarkaan , you can use MaskedView from '@react-native-masked-view/masked-view' it worked for me.

Thank you very much i will use this package too.

waleedauthornate commented 2 months ago

The most simple way to to avoid this issue is that <LinearTextGradient style={{fontWeight: 'bold', fontSize: 72}} locations={[0, 1]} colors={['red', 'blue']} start={{x: 0, y: 0}} end={{x: 1, y: 0}}>

Hello World Just enclose the string/text in and apply the styling on that just not the color adjust the color through <><><><><><><> <><><><><><><> The above part!