question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

using interpolatePath throws "outputRange cannot include undefined. (,)"

See original GitHub issue

Hey,

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:open
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
wcandilloncommented, Jul 8, 2019

@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!

0reactions
iremlopsumcommented, Jul 8, 2019

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found