Replies: 1 comment
-
You can use blendMode I think all the children of a group are not considered as a single layer ` const {width: SCREEN_WIDTH, height: SCREEN_HEIGHT} = Dimensions.get('window'); export default App; |
Beta Was this translation helpful? Give feedback.
-
In web,
mix-blend-mode
sets how an element's content should blend with the content of the element's parent and the element's background.. So the element's content has no effect on each other.In Skia, setting the blend-mode on a group will also blend elements within that group together which is not the case on web
Let's assume I want to have to overlapping lines where one is rotated 180 degrees to create a plus sign. Then I would like to apply a blend-mode on them. However I do not want the lines to blend with each other but only with their parent.
Here is how I tried to do it with Skia:
Which will produce:
Here is how an example from web:
Result:
How can I do a similar thing with react-native-skia?
Beta Was this translation helpful? Give feedback.
All reactions