monterosalondon / react-native-parallax-scroll

Parallax scroll view for react-native
MIT License
555 stars 63 forks source link

Header and Notch #32

Closed teod closed 5 years ago

teod commented 5 years ago

Issue details

SafeAreaView component does not work inside the renderHeader funciton

Please specify which versions of the RN and ParallaxScroll

Screenshots / Screencast / Code Snippets (Optional)

      <ParallaxScroll
        renderHeader={({ animatedValue, height }) => (
          <SafeAreaView>
            <View style={{ height }}>
              <Text>Title</Text>
            </View>
          </SafeAreaView>
        )}
teod commented 5 years ago

The way I tried to handle it was incorrect in the first place, anyway wrapping the whole ParallaxScroll component into a SafeAreaView won't work as well, I resolved my issue using Constants.statusBarHeight from Expo Kit.