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
I m tring this in my android studio.
same error
@acarkaan , you can use MaskedView from '@react-native-masked-view/masked-view' it worked for me.
@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.
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}}> <Text>Hello World</Title> </LinearTextGradient>
Just enclose the string/text in <Text></Text> and apply the styling on that just not the color adjust the color through
<><><><><><><>
<LinearTextGradient
style={{fontWeight: 'bold', fontSize: 72}}
locations={[0, 1]}
colors={['red', 'blue']}
start={{x: 0, y: 0}}
end={{x: 1, y: 0}}>
<><><><><><><>
The above part!