naoufal / react-native-accordion

An Accordion Component for React Native
https://www.npmjs.com/package/react-native-accordion
437 stars 101 forks source link

List inside content #51

Open rohananarse opened 7 years ago

rohananarse commented 7 years ago

How can I add list inside accordion instead of content. ?? Please help

Zomis commented 6 years ago

Have you tried adding some kind of list as the content?

AishwaryaSurana commented 6 years ago

+1. I too am searching for the answer. I tried adding array to content but it shows all the elements of array as a single content

rohananarse commented 6 years ago

Same here :/ I'm still stuck at it

On Sep 5, 2017 2:07 PM, "Aishwarya Surana" notifications@github.com wrote:

+1. I too am searching for the answer. I tried adding array to content but it shows all the elements of array as a single content

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naoufal/react-native-accordion/issues/51#issuecomment-327109914, or mute the thread https://github.com/notifications/unsubscribe-auth/AYUqmVoFe2i3hY8-XP-gwby9AbktUz3wks5sfQhegaJpZM4NaVdb .

ercpereda commented 6 years ago

Just past a custom component with the list.

const content = (<ListView style={{height: 150}}>....</ListView>)
rohananarse commented 6 years ago

U have working example ?

On Oct 19, 2017 7:21 AM, "Ernesto R. C. Pereda" notifications@github.com wrote:

Just past a custom component with the list.

const content = (<ListView style={{height: 150}}>....)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/naoufal/react-native-accordion/issues/51#issuecomment-337776414, or mute the thread https://github.com/notifications/unsubscribe-auth/AYUqmWjt1oEO94C8kZ1g4UQ8DmGJlmXQks5stqsagaJpZM4NaVdb .

ercpereda commented 6 years ago

@rohananarse I'm not using this component exactly I forked some time ago. You can install it from https://www.npmjs.com/package/@ercpereda/react-native-accordion. To checkout a working example with expo visit this url exp://exp.host/@ercpereda/react-native-accordion-example The source code of the example is in https://github.com/ercpereda/react-native-accordion-example