monterosalondon / react-native-parallax-scroll

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

SafeAreaView #40

Open itsam opened 5 years ago

itsam commented 5 years ago

Issue details

Using <SafeAreaView> displays just a white empty screen

Steps to reproduce

Embracing <ParallaxScroll> in <SafeAreaView> causes white screen

Please specify which versions of the RN and ParallaxScroll

Affected platforms

paschaldev commented 5 years ago

+1

itsam commented 5 years ago

A workaround, at least for the bottom space, is to use react-native-iphone-x-helper and do the following:

import { getBottomSpace } from "react-native-iphone-x-helper";
<ParallaxScroll
        style={{ flex: 1, marginBottom: getBottomSpace() }}
/>

Still, would be better if <SafeAreaView> worked as expected

paschaldev commented 5 years ago

Thanks for this... How about on orientation change?