Mikael Sand
Mikael Sand
Very interesting approach. There's also a web version of react-native-svg now.
https://github.com/react-native-community/react-native-svg/pull/950
I'm still thinking that it would be easier to map the input props which are coming to react-native-svg to dom in the render(?) thread of RND, than mapping the native...
The animation elements from the svg spec aren't supported yet. Instead we support using Animated from react-native: https://github.com/react-native-community/react-native-svg/issues/180#issuecomment-370276714 https://github.com/react-native-community/react-native-svg/issues/180#issuecomment-428973144
Yeah, would be great if you could make a pr with some elements that translate svg animations to animated.
It's relatively easy to write a function which translates the animate syntax to animated, e.g. like this: https://snack.expo.io/@msand/animatetransform ```jsx import * as React from 'react'; import { Animated, Easing, PanResponder,...
If someone is interested in working on this, they can probably get some inspiration from how the mask element was implemented recently: https://github.com/react-native-community/react-native-svg/commit/46307ecd2d2eb6849c0cb2465106201cb9901dda https://github.com/react-native-community/react-native-svg/commit/b88cba85a41ee5af58e248674dfba3343430a014 In order to compute the mask...
Essentially it entails adding some logic where it now renders to the current context; to instead check if the current element has the filter attribute set, if so: create a...
@glthomas Great to hear :) The react part of it is relatively small, most of the work will probably be around implementing the bitmap filters on android and ios. Could...
Actually, if you only need blur, then at least on android it's possible to implement it using https://developer.android.com/reference/android/renderscript/ScriptIntrinsicBlur and on iOS https://developer.apple.com/library/archive/documentation/GraphicsImaging/Reference/CoreImageFilterReference/index.html#//apple_ref/doc/filter/ci/CIGaussianBlur In this case, quite a bit of the...