React-native-collapsible: Broken for 0.40.0?

Created on 18 Jan 2017  路  20Comments  路  Source: oblador/react-native-collapsible

Does this work on latest RN release? Doesn't render for me

Most helpful comment

Hey guys, try 0.8.0 together with the just released React Native 0.41.0

All 20 comments

me using react-native-collapsible/Accordion, just updated to 0.40.
I can see the titles of the Accordion. Clicking on the titles changes the icon for expansion/compression but no contents shows anymore. That was working just fine before.
Anything I can do to help fix this?

I upgraded from 0.22.0 to 41-rc and it is also broken for me (after fixing a lot of other things...)

Agreed that it's broken for latest release.

AFAIK this should be fixed a few days ago in yoga master, hopefully that will make it into the next release of RN.

+1

@oblador new infos that the fix will be definitively in the next react-native version ?

and do anyone know when the new react-native version will arrive....

@Kurt57 Didn't they say that they're slowing down the updates to once per month? I'm guessing it'll be sometime this week, considering 0.40.0 came out about 25 days ago.

with the fix for this module? @Naoto-Ida

@Kurt57 Not sure, I guess we'll have to wait for 0.41.0 and see.

I'm really desperate to get this working today. I've tried rolling back RN to 0.39.2, but still no expanding on iOS. Unfortunately, this is an urgent bug fix, so I can't wait for the next release of RN. Can anyone who has solved this by "building from the source" point me in the right direction for getting the collapsibles working on iOS?
Note, it works fine on Android (0.39.2 and 0.40.0)
So far, I've tried:

  • Upgrading to 0.40.0 and adding 'scroll' to Collapsible.js ln99.
  • Downgrading to 0.39.2. Also tried added 'scroll'
  • Downloading RN repo master branch and replacing 'react-native' folder in node_modules, then run npm install inside the repo. Gives a lot of error: 'React/RCTwhatever.h' file not found .

@davingreen Incredible how it is working on Android. Mine didn't work from RN 0.37 up. I needed to downgrade to RN 0.36.

@ammichael Thanks for the response. I tried a completely new RN project with:
react-native init Project --version [email protected]
But I'm still not getting the expansion of sections. Can you shed some more light on how you rolled back to 0.36.0 and if you did anything else to get it working?

@davingreen Actually I just downgrade using npm, both react and react-native. Something like:

npm install --save [email protected]
npm install --save [email protected]

Then I restarted the packager and worked fine..

Reading through #51 , it seems like we keep waiting for a fix with each new RN release, but the last several have not had it.

@ammichael Downgrading didn't work. 馃槮 But I downgraded and then used this fork: git://github.com/relayfoods/react-native-collapsible.git#collapsible-not-expanding-temp-fix. Finally got it to work..

If anyone has an approach that doesn't require downgrading RN, please share!

Hey guys, try 0.8.0 together with the just released React Native 0.41.0

@oblador does it work? I'm on 0.41.0 so I can test it if you haven't yet.

I've tested the Example project and it works, but please do test it.

it works for me! 馃憤
(only tested on android)

Works for me too. Nice! (:

Was this page helpful?
0 / 5 - 0 ratings