Preview:
constructor (props) {
  super(props)
  this.state = {
    scrollY: new Animated.Value(0),
  }
}
render () {
const headerTranslate = this.state.scrollY.interpolate({
  inputRange: [0, HEADER_SCROLL_DISTANCE],
  outputRange: [0, -1 * HEADER_SCROLL_DISAPPEAR],
  extrapolate: 'clamp'
  })
  
  return (
  <View>
  //using the headerTranslate for my header
  <ScrollView
  scrollEventThrottle={16}
  onScroll={Animated.event(
    [{ nativeEvent: { contentOffset: { y: this.state.scrollY } } }]
  )}
  >...</ScrollView>
  </View>
  )
}
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter