This refractor contains a rewrite in Typescipt (closes #96) and a bunch of simplifications which should allow the component to be used more flexibly.
There's one large breaking change, though. I've decided to remove the default layout so a renderItem-function is always required. There has been a lot of confusion (#156, #145, #139, #136, #127, #107, #103, #97) around the default layout and though removing it requires users to write more code it also clarifies that the goal of the component is not to be a one-size-fits-all, but a helpful way to achieve the introductory slider that users are hoping to get.
This refractor contains a rewrite in Typescipt (closes #96) and a bunch of simplifications which should allow the component to be used more flexibly.
There's one large breaking change, though. I've decided to remove the default layout so a
renderItem
-function is always required. There has been a lot of confusion (#156, #145, #139, #136, #127, #107, #103, #97) around the default layout and though removing it requires users to write more code it also clarifies that the goal of the component is not to be a one-size-fits-all, but a helpful way to achieve the introductory slider that users are hoping to get.