Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

outputRange must have 2 elements #746

Closed
jomaint opened this issue Oct 29, 2016 · 6 comments
Closed

outputRange must have 2 elements #746

jomaint opened this issue Oct 29, 2016 · 6 comments
Labels
bug Something isn't working

Comments

@jomaint
Copy link

jomaint commented Oct 29, 2016

While following the AnimatedView.js example, i have the error:
outputRange must have 2 elements in the componentDidMount()

region.timing({
      latitude: scrollX.interpolate({
        inputRange: markers.map((m, i) => i * SNAP_WIDTH),
        outputRange: markers.map(m => m.coordinate.latitude),
      }),

Did anyone else manage to solve this error? I suspect the Animated.interpolation function requires 2 input

@jomaint
Copy link
Author

jomaint commented Nov 6, 2016

Still stuck on this issue. Anyone managed to get the AnimatedView to work?

@traendy
Copy link

traendy commented Oct 11, 2017

If there is a solution, I'll be greatful to read about it.

@rborn rborn added bug Something isn't working Documentation labels Dec 15, 2017
@ghost
Copy link

ghost commented May 5, 2018

is there a fix for this issue yet ?

@rborn
Copy link
Collaborator

rborn commented Mar 21, 2019

The latest versions have camera* methods implemented. Closing.

@rborn rborn closed this as completed Mar 21, 2019
@anthlasserre
Copy link

Still have the same error...

@zerosrat
Copy link

zerosrat commented May 8, 2024

Make sure markers.length >= 2, unless the error is throwed by RN

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants