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

Unable to use Stack modes. #127

Closed
Saad9624 opened this issue Jan 27, 2022 · 9 comments
Closed

Unable to use Stack modes. #127

Saad9624 opened this issue Jan 27, 2022 · 9 comments
Assignees
Labels
bug Something isn't working

Comments

@Saad9624
Copy link

When mode is set to "horizontal-stack" or "vertical-stack" the error pops in.

IOS Error: evaluation ( props.modeConfig)
Android error: cannot set property 'showLength' of undefined.

Steps to reproduce the behavior:
1.Just add mode to 'horizontal-stack'

Screenshots
IOS == >>
Screenshot 2022-01-27 at 5 34 35 PM
Android ==> Screenshot 2022-01-27 at 5 34 47 PM

Versions

  • react: v17.0.2
  • react-native: v0.66.4
  • react-native-reanimated: v2.2.4
  • react-native-gesture-handler: v2.1.0

Smartphone

  • Device: iPhone 12
  • OS: [e.g. iOS 14.5]
@Saad9624 Saad9624 added the bug Something isn't working label Jan 27, 2022
@dohooo
Copy link
Owner

dohooo commented Jan 27, 2022

I'll start to check this matter tomorrow.

@Saad9624
Copy link
Author

Thanku for your prompt response.

@dohooo
Copy link
Owner

dohooo commented Jan 27, 2022

Thank you for your reminder.

@dohooo
Copy link
Owner

dohooo commented Jan 27, 2022

But before we do that, I think you should take a look at this https://github.com/dohooo/react-native-reanimated-carousel/blob/main/example/src/stack/index.tsx

@Saad9624
Copy link
Author

What value should be pass to modeConfig? is it required ? when mode is horizontal-stack?

@dohooo
Copy link
Owner

dohooo commented Jan 27, 2022

What version of Carousel are you using?

@dohooo
Copy link
Owner

dohooo commented Jan 27, 2022

There should be a type hint, If not, use the latest version. #118

@Saad9624
Copy link
Author

I am using the latest version but there is not hint provided for modeConfig and in the documentation for modeConfig column is empty as well.

@stefandbd
Copy link

Is someone got this issue you might miss adding the modeConfig prop:

Eg:

modeConfig={{
     showLength: 3,
     scaleInterval: 0.2,
     stackInterval: 50,
     opacityInterval: 0.2,
 }}

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

3 participants