Skip to content

Instantly share code, notes, and snippets.

@ajsmth
Created February 26, 2020 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajsmth/662a8b6c4899057e07df91dcb3def3e9 to your computer and use it in GitHub Desktop.
Save ajsmth/662a8b6c4899057e07df91dcb3def3e9 to your computer and use it in GitHub Desktop.
Setting the scrollview offset
<Animated.ScrollView
contentOffset={{y: SEARCH_PLAYLISTS_HEIGHT}}
onScroll={handleScroll}
style={{flex: 1}}>
{...}
</Animated.ScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment