Skip to content

Let external state change swipter items #51

Closed
@joker-777

Description

@joker-777

Hi,

I created a small example where when clicking on each option should add it to a delectable array. Depending on if an item is in this array or not, it should show a yellow border and also an external button should be displayed. How can I do this with the current version of react-native-web-swipter?

https://codesandbox.io/s/react-native-web-swiper-with-outside-state-not-working-7qtbd?file=/src/App.js

Thanks a lot for this library!

p.d.: I now you wrote "The Swiper will not be re-rendered if slides state or props have changed. Slides must control their condition." which is probably the reason for this problem but I think my case is not very uncommon and I think there should be a solution for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions