naoufal / react-native-accordion

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

Animations not working in Android #30

Open kunsachdeva opened 8 years ago

kunsachdeva commented 8 years ago

Following is my code for a component in my react native android app. Everything is working fine but the animation. Did I do something wrong? Or anyone else facing this issue?

export default class Home extends Component {
  constructor(props){
    super(props);
    var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
    this.state={dataSource:ds.cloneWithRows(['row 1', 'row 2'])}
  }
  render() {
    return (
      <ListView
        dataSource={this.state.dataSource}
        renderRow={this._renderRow}
      />
    );
  }

  _renderRow() {
    var header = (
      <View style={{height:80}}>
        <Text>Click to Expand</Text>
      </View>
    );

    var content = (
      <View style={{height:80}}>
        <Text>This content is hidden in the accordion</Text>
      </View>
    );

    return (
      <Accordion
        header={header}
        content={content}
        duration={3000}
        easing="easeInBounce"
      />
    );
  }
frankandrobot commented 7 years ago

same here. Animations don't work. Trying on actual phone

LucasBassetti commented 7 years ago

same here.

nicmesan commented 7 years ago

Same here

thireven commented 7 years ago

My PR addresses this issue: #42

saumya commented 7 years ago

same problem here too