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

Animated view not working #31

Open
vbraeke opened this issue May 31, 2018 · 0 comments
Open

Animated view not working #31

vbraeke opened this issue May 31, 2018 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@vbraeke
Copy link

vbraeke commented May 31, 2018

Environnement

Environment:
OS: Windows 7
Node: 8.11.1
Yarn: Not Found
npm: 5.6.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found

Packages: (wanted => installed)
react: 16.3.1 => 16.3.1
react-native: 0.55.4 => 0.55.4

Issue

My Animated View is not taking the overflow inside a ScrollView Component when I'm trying to drag it outside of the scrollview is there any workaround to make it works ?.

Here is a sample of my code :

import React, { Component} from 'react';
import ViewOverflow from 'react-native-view-overflow';
const AnimatedViewOverflow = Animated.createAnimatedComponent(ViewOverflow);

class DraggablePicture extends Component {

  render() {

    return (
      <ScrollView> 
          <AnimatedViewOverflow
            {...this.panResponder.panHandlers}
            style={ [  this.state.pan.getLayout() ]  }
          >
            <Image 
              style={stylePicture}
              source={{ 
                uri: 'file://' + pathFile, 
              }}
            />
          </AnimatedViewOverflow> 
      </ScrollView>
    )
  }
}

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants