Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation bugs on scroll down #2

Open
gabrielvcbessa opened this issue Oct 25, 2017 · 1 comment
Open

Animation bugs on scroll down #2

gabrielvcbessa opened this issue Oct 25, 2017 · 1 comment

Comments

@gabrielvcbessa
Copy link

If you have an empty or small list, and scroll down, the animation disappears and onRefresh method is not called anymore.

@MarkDaleman
Copy link

MarkDaleman commented May 16, 2018

This is also happening for me when I have a long list. See the attached gif for a video of the problem that we're having.

you can click me for an example

Also, I'm using this piece of code to render the whole thingy:

render() {
  return (
    <View style={{flex: 1}}>
      <PullToRefresh
        isRefreshing= {this.state.isRefreshing}
        onRefresh= {this.onRefresh.bind(this)}
        animationBackgroundColor = {'#D3D3D3'}
        pullHeight = {180}
        contentView = {
          <ScrollView showsVerticalScrollIndicator={false}>
              <Text style={styles.welcome}>Welcome to React Native 0</Text>
              <Text style={styles.welcome}>Welcome to React Native 1</Text>
              <Text style={styles.welcome}>Welcome to React Native 2</Text>
              <Text style={styles.welcome}>Welcome to React Native 3</Text>
              <Text style={styles.welcome}>Welcome to React Native 4</Text>
              <Text style={styles.welcome}>Welcome to React Native 5</Text>
              <Text style={styles.welcome}>Welcome to React Native 6</Text>
           </ScrollView>
           }
          onPullAnimationSrc ={require('./coin_pull.json')}
          onStartRefreshAnimationSrc ={require('./coin_start.json')}
          onRefreshAnimationSrc = {require('./coin_repeat.json')}
          onEndRefreshAnimationSrc = {require('./coin_end.json')}
      />
    </View>
   );
 }

If you need more information or have any tips or tricks that I can try I'd be happy to hear from you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants