Created
May 28, 2019 04:42
-
-
Save rutvikbhatt9/81506464b0d2d9d7c0ecad4a2f908910 to your computer and use it in GitHub Desktop.
Get Interpolation value for artist profile image left
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//artist profile image position from left | |
_getImageLeftPosition = () => { | |
const {scrollY} = this.state; | |
return scrollY.interpolate({ | |
inputRange: [0, 80, 140], | |
outputRange: [ThemeUtils.relativeWidth(30), ThemeUtils.relativeWidth(38), ThemeUtils.relativeWidth(10)], | |
extrapolate: 'clamp', | |
useNativeDriver: true | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment