@Christian ( , ) flex: 1, flex: 1 . flex: 1, . , , flex: 1 SafeAreaView . , SafeAreaView backgroundColor .
, , / FlatList ( ).
: ListFooterComponent, " " /
( , ... iPhone , 2019 , )
ListFooterComponent={<View style={{ height: 0, marginBottom: 90 }}></View>}
, iPhoneX. , , iPhone :
ListFooterComponent={<View style={{ height: 0, marginBottom: noBezels ? 90 : 0 }}></View>}
, , GIF, ... .
response-native-device-info, hasNotch(). , iPhone , hasNotch() Platform.OS === 'ios'
() *
, , ...
SafeAreaView .
import { SafeAreaView } from 'react-navigation';
<SafeAreaView forceInset={{ bottom: 'never' }} />
source
share