You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 this issue
Jun 5, 2023
· 4 comments
The text was updated successfully, but these errors were encountered:
shivams10
changed the title
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 linear text gradient
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
Jun 5, 2023
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</Title>
Just enclose the string/text in 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}}>
<><><><><><><>
I m tring this in my android studio.
The text was updated successfully, but these errors were encountered: