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

Animations not working in Android

Open kunsachdeva opened this issue 8 years ago • 5 comments

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"
      />
    );
  }

kunsachdeva avatar Jul 04 '16 09:07 kunsachdeva

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

frankandrobot avatar Aug 25 '16 19:08 frankandrobot

same here.

LucasBassetti avatar Sep 13 '16 12:09 LucasBassetti

Same here

nicmesan avatar Oct 13 '16 17:10 nicmesan

My PR addresses this issue: #42

thireven avatar Nov 05 '16 23:11 thireven

same problem here too

saumya avatar Nov 30 '16 07:11 saumya