Not able to change svgs dynamically on UI thread using useAnimatedProps #5544
Replies: 2 comments 6 replies
-
Reanimated team please correct me if I am wrong, but since |
Beta Was this translation helpful? Give feedback.
-
@WoLewicki I could integrate expo-image with reanimated. Its working fine but still involves trip to JS thread. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First of all thank you for such a great library and all your efforts team!!. Highly appreciated.
I am trying to achieve something related to react-native-svg and reanimated. I am using SvgXml to dynamically re-render/change the svgs on UI thread. For that, I am using useAnimatedProps. But somehow it is not working. Does it have to do something with adaptors that we need to pass with useAnimatedProps ?
I am thinking its not working as xml is just a normal prop here and even if we use it in useAnimatedProps and use addWhitelistedNativeProps to add it as property, it won't work.
I have used following code :
Link to similar thread - #5543 (comment). This can also be closed once current one is closed.
@efstathiosntonas
@piaskowyk
@tomekzaw
@tjzel
@jakub-gonet
@karol-bisztyga
@msand
@WoLewicki
Beta Was this translation helpful? Give feedback.
All reactions