0

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?

1
  • Sounds like a very specific use case, so unlikely someone has made exactly what you are looking for. In any case, it's not clear from your question what the requirements are, so I would recommend adding a bit more detail (e.g. screen mockups) on what you are trying to achieve. Commented Aug 30, 2017 at 22:39

1 Answer 1

1

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):

Sign up to request clarification or add additional context in comments.

2 Comments

Did this help you at all?
Thanks sinewave440hz, the accordion did the job!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.