Sat*_*yam 5 react-native react-native-flatlist iphone-x
在我的 ReactNative 应用程序中,我使用“SafeAreaView”来限制我在可见区域中的内容。我的应用程序以横向模式运行。看图

尝试在 Flatlists 和 SafeAreaView 之间使用内部视图包装您的 Flatlists,并添加内部视图的填充,例如
<SafeAreaView style={{flex: 1}}>
<View style={{flex: 1, padding: 24, justifyContent: 'center', alignItems: 'center'}}>
{/* your flatlists here */}
</View>
</SafeAreaView>
Run Code Online (Sandbox Code Playgroud)
这应该使它看起来更自然。
| 归档时间: |
|
| 查看次数: |
1556 次 |
| 最近记录: |