9 Commits

Author SHA1 Message Date
Wojciech Lewicki
3a04189df8 fix: reanimated on old architecture (#1869)
PR adding option for `Double` for all props that were of type `NumberProp` on `Android` so `reanimated` works the same as before on old architecture. It also introduces the change of how `fill` and `stroke` should be constructed for options not going through `render` method, e.g. `react-native-reanimated`. An example of how to handle it can be seen in the provided example: https://github.com/react-native-svg/react-native-svg/pull/1869/files#diff-76a76277daf14518270e8aea8a5e9358a8215d7e4276d2e5f1c4fe95107cdc20
2022-09-15 12:08:57 +02:00
Wojciech Lewicki
8f1bda4856 feat: add Fabric on iOS without ComponentViews (#1821)
Version of #1754 without usage of ComponentViews. It seems like a more proper way, but introduces the necessity of clearing whole state of each component on recycling for it not to be used when view is recycled.

Still known problems:

We stringify props of type NumberProp since codegen only accepts props of a single type. It is the fastest way of dealing with it, but maybe there could be a better way to handle it.
Image resolving should be probably handled the same as in RN core
SvgView needs to set opaque = NO so it is does not have black background (it comes from the fact that RCTViewComponentView overrides backgroundColor setter which in turn somehow messes with the view being opaque). All other svg components do it already so maybe it is not such an issue.
transform prop won't work when set natively since it is not parsed in Fabric
2022-08-11 14:08:11 +02:00
Mikael Sand
f0cd11d6f6 perf: optimize svg root prop handling, simplify element development
This change allows modifying the element code without causing it to load
the native components more than once, making live-reload usable.
2020-01-18 19:00:33 +02:00
Mikael Sand
0fa4177ed7 perf: optimize handling of font properties in G elements 2020-01-18 06:47:49 +02:00
Mikael Sand
363c1b491f perf: optimize handling of inherited styles 2020-01-18 06:27:17 +02:00
Mikael Sand
279c3fcf84 perf: optimize extraction of fill, stroke, responder, matrix & display
potentially breaking change
if any issues show up, then they'll be considered regressions
should be resolved in ways which cause less traffic from js to native
2020-01-18 05:26:19 +02:00
Mikael Sand
a37afcb485 fix: snapshot 2020-01-18 05:17:44 +02:00
Mikael Sand
b1c0a43e9a tests: add test for combining parse with inlineStyles 2019-10-23 17:43:41 +03:00
Tuomas Jaakola
8ebd84f792 test case for css support 2019-10-21 10:57:20 +03:00