using interpolatePath throws "outputRange cannot include undefined. (,)"
See original GitHub issueHey,
I have two paths
const playPath = 'M11 10 L18 13.74 18 22.28 11 26 M18 13.74 L26 18 26 18 18 22.28'
const pausePath = 'M11 10 L17 10 17 26 11 26 M20 10 L26 10 26 26 20 26'
And I’m trying to use do something
const d = interpolatePath(this.animatedValue, {
inputRange: [0, 1],
outputRange: [playPath, pausePath]
});
return (
<SVG width={100} height={100} viewBox="0 0 36 36">
<AnimatedPath {...{ d }} fill="green"/>
</SVG>
)
This throws the following error: outputRange cannot include undefined. (,)
Any ideas?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Getting 'TypeError: interpolate is not a function' in React-Native
Open the Drawer.js file found in the <project folder>/node_modules/react-navigation-drawer/lib/module/views/ folder. · You will find interpolate ...
Read more >react-native-redash - Bountysource
Hi everyone,. Using more than two ReText elements with a fast updating SharedValue starts to drop frame. With 5 elements quick swipes halve...
Read more >React JS UNDEFINED Solution | Reactjs Learning - YouTube
As a React JS developer, have you encountered such errors?- TypeError: Cannot read property 'map' of undefined - Map is not a function-...
Read more >Interpolation with React Native Animations | by evening kid
Now, this one is a bit tricky for one reason which is: Animated cannot animate some style properties with native driven animations.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@iremlopsum I just took a look at your example and indeed it will be a bit of work for redash to support. That’s a great use case we need to support tough!
Thanks for the quick response 😃
I’m pretty new to SVG’s and not sure how to make this work without a move command. If you could point me in the right direction regarding either building my own interpolation function or how could I achieve the same path without a move command I would really appreciate it 😃