Reputation: 2116
I'm trying to implement an e-commerce based app using React Native and need some pointers in regards to building a multi step ListView with multiple selection options. For example, a user wants to purchase a t-shirt. Once they click 'add to cart' I need the component to load several options i.e. shirt size, color etc. Is there a component like this?
Upvotes: 0
Views: 2933
Reputation: 1365
What you are probably looking for here is an accordion or collapsible view. There are a few out there now, including:
Perhaps these don't exactly meet your needs, but they are a good starting point.
If you take react-native-accordion as an example, you could have your initial product view and purchase button visible inside a view and designate the purchase button as the header component that, when pressed, will reveal the shirt size and colour pickers. That should do it.
More generally, whenever you need a component you can check here (there are other resources too):
Upvotes: 1