NativeBase icon indicating copy to clipboard operation
NativeBase copied to clipboard

can we expand all rows using accordion?

Open anand-y opened this issue 8 years ago • 9 comments

node, npm, react-native, react and native-base version

node - v9.1.0 npm - v5.5.1 react: "16.3.1", react-native: "^0.55.4", native-base: "^2.6.1",

Expected behaviour

1] i am using native base accordion and want to expand all the rows at the same time , can we have expand all property? 2] i have tried to modifiy the Accordion component file from node modules but changes made in the file does not reflect, so is their any way to modify accordion functionality??

Actual behaviour

we dont have property for accordion link expand all

Steps to reproduce should include code snippet and screenshot

Is the bug present in both iOS and Android or in any one of them?

ios and android both

Any other additional info which would help us debug the issue quicker.

anand-y avatar Aug 14 '18 09:08 anand-y

i have tried to modifiy the Accordion component file from node modules but changes made in the file does not reflect

to get this working, go through https://github.com/GeekyAnts/NativeBase/blob/master/CONTRIBUTING.md#3-development-environment

This point being important here, In NativeBase's package.json, modify main from dist/src/index.js to src/index.js before you start with the development.

SupriyaKalghatgi avatar Aug 14 '18 09:08 SupriyaKalghatgi

Thank you for the link i will go through the documentation

anand-y avatar Aug 14 '18 09:08 anand-y

You can make this change initially, to find the code reflecting in your app

In NativeBase's package.json, modify main from dist/src/index.js to src/index.js before you start with the development.

SupriyaKalghatgi avatar Aug 14 '18 09:08 SupriyaKalghatgi

yes i modified main from dist/src/index.js to src/index.js and now i can modify the component , Thankyou so much for the quick response

anand-y avatar Aug 14 '18 09:08 anand-y

any other help needed here?

SupriyaKalghatgi avatar Aug 14 '18 09:08 SupriyaKalghatgi

Closing this due to inactivity

SupriyaKalghatgi avatar Aug 20 '18 05:08 SupriyaKalghatgi

any update? how did you archived to open multiple accordion items?

kuriel-trivu avatar Jan 09 '19 17:01 kuriel-trivu

Hi, I've implemented exactly that feature in the PR https://github.com/GeekyAnts/NativeBase/pull/2632

flodev avatar Mar 14 '19 08:03 flodev

Hi, I tried expanded={[1,2]}, but it doesn't work for me. My React naive version is 0.60 and my native base version is 2.13.8. Any update?

saeedtkh avatar Oct 28 '19 16:10 saeedtkh