naoufal / react-native-accordion

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

Expanded Prop doesn´t work on Android #22

Open BigPun86 opened 8 years ago

BigPun86 commented 8 years ago

Like the title says, the expanded prop won´t effect on Android device. On my iOS Version everything works fine.

_Update_ When debugging the src/index.js i figured out, that i never get into the function of _getContentHeight

 componentDidMount() {
   // Gets content height when component mounts
   // without setTimeout, measure returns 0 for every value.
   // See https://github.com/facebook/react-native/issues/953
   setTimeout(this._getContentHeight);
},

When i remove the setTimeout, i can jump into the function, but every value of measure return 0 for every value. So this might be the issue!?

Any ideas?