react-native-accordion icon indicating copy to clipboard operation
react-native-accordion copied to clipboard

Not working with react native 0.36

Open huyta opened this issue 8 years ago • 18 comments

The content height of accordion is always zero

huyta avatar Oct 31 '16 16:10 huyta

a quick fix is to add overflow: 'hidden' after line 111:

        <View
          ref="AccordionContentWrapper"
          style={{
            height: this.getTweeningValue('height'),
            overflow: 'scroll'
          }}
        >

atlanteh avatar Nov 05 '16 22:11 atlanteh

@atlanteh - thanks. That works for me as well on 0.38.rc.0

compojoom avatar Nov 11 '16 12:11 compojoom

@atlanteh Note: Modify the Source Code (./node_modules/react-native-accordion/src/index.js)

llitfkitfk avatar Nov 15 '16 06:11 llitfkitfk

Modifying the source code doesn't sound like a good fix for this issue. Can someone please raise a PR to fix this?

laxxers avatar Nov 15 '16 09:11 laxxers

@laxxers please see #42. I've copied the pr locally until this is solved

atlanteh avatar Nov 15 '16 09:11 atlanteh

The fix proposed by @atlanteh is not compatible with Android

iuraya avatar Mar 08 '17 17:03 iuraya

Worked for me, both android & iOS.. Maybe your scenario is more complex which might introduce a bug? Can you try it on a very simple example page and see if it works for you.. Also maybe RN latest version broke something? Currently I'm on RN 41and it still seems to work..

atlanteh avatar Mar 08 '17 17:03 atlanteh

not working on Android for RN 42 screenshot_20170310-140542

apn-jun avatar Mar 10 '17 22:03 apn-jun

While the quick fix from @atlanteh works on iOS, anyone tried this on Android?! I am on RN-0.36.0.

saumya avatar Mar 27 '17 13:03 saumya

I have this working on RN 0.36 with android. @saumya

compojoom avatar Mar 27 '17 13:03 compojoom

hi @compojoom thanks for the response. So this works in RN 0.36 on Android, with the quick fix or without the quick fix ? just asking because, if the quick fix is needed, then we have to fix it here for all of us.

saumya avatar Mar 27 '17 13:03 saumya

Now I'm working with pull request #42 (copied locally). Seems to work on all the devices I used. both android and ios. my rn version is 41.2

atlanteh avatar Mar 27 '17 16:03 atlanteh

this branch has all the fixes I needed to have it work relatively ok on iOS and Android: https://github.com/compojoom/react-native-accordion/tree/compojoom-fixes

I'm currently using it with RN 0.36

compojoom avatar Mar 28 '17 07:03 compojoom

Hi @atlanteh does that mean, once merged we will get this issue fixed? If yes, then when can we expect the merge? Thanks

saumya avatar Mar 31 '17 08:03 saumya

Well it works for me.. But I'm not the owner of this repo.. So it's not my decision if to merge it or not

atlanteh avatar Mar 31 '17 11:03 atlanteh

Thanks @compojoom !

warent avatar Jul 04 '17 21:07 warent

I using the duplicate repo of @ercpereda and I found this problem in iOS when i have items in object in map/loop. the solution by @atlanteh works but how can I auto assign height on each loop item?

eggybot avatar Oct 25 '17 16:10 eggybot

@eggybot I not understand your problem. Can you put some example?

ercpereda avatar Oct 25 '17 19:10 ercpereda