I"m setting an opacity for a View, and then I find that child controls also have an opacity. How to avoid this problem, that is, to set their own?
I have searched for some answers on the Internet, and a unified statement is to set rgba (xx,xx)
to achieve a change in transparency.
but this method treats the symptoms rather than the root of the problem. If my parent view uses a gradient of react-native-linear-gradient
this library or other parent components that cannot set rgba
, it is impossible to set transparency through rgba
, so how to solve this situation? Solve?