Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k views
in Technique[技术] by (71.8m points)

svg - React native interpolate removing '0' from path string

I'm triyng to animate an svg path but when I use the interpolate from Animated some leading zeros are removed.

This is the normal path

'M191.694 65H19A10.011 10.011 0 019 55V19A10.011 10.011 0 0119 9h172.7A41.925 41.925 0 00181 37a41.925 41.925 0 0010.693 28z'

After interpolate

'M191.694 65H19A10.011 10.011 0 19 55V19A10.011 10.011 0 119 9h172.7A41.925 41.925 0 181 37a41.925 41.925 0 10.693 28z'

I'm having the same problem with every animation lib when I use interpolate

question from:https://stackoverflow.com/questions/65927579/react-native-interpolate-removing-0-from-path-string

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...