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
Sure, the main component probably is a view, but all the components that represent shapes are not views, I'd hope?
The reason I'm asking is that my app displays a a lot of shapes, but very few of them are interactive with respect to the user. Some of those shapes are svg components. Trying to decide if converting these to svg components might be an optimization, rather than each one being a view as they are now. One of those components is animated (in terms of X/Y translation) and I would need to preserve some z-ordering. I presume react-native-svg supports layers as part of the SVG standard. Another potential benefit might be working around a problem that has show up in reanimated related to view recycling.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Sure, the main component probably is a view, but all the components that represent shapes are not views, I'd hope?
The reason I'm asking is that my app displays a a lot of shapes, but very few of them are interactive with respect to the user. Some of those shapes are svg components. Trying to decide if converting these to svg components might be an optimization, rather than each one being a view as they are now. One of those components is animated (in terms of X/Y translation) and I would need to preserve some z-ordering. I presume react-native-svg supports layers as part of the SVG standard. Another potential benefit might be working around a problem that has show up in reanimated related to view recycling.
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions