简体   繁体   中英

Native Base picker: how to add margin/padding to top?

In my React Native app I'm using the Native Base picker. On the iPhone 12 emulator, when the list to select from pops up it's pushed far to the top of the screen, and I have to tap just below the Back button for it to work. How can I put padding/margin above this screen?

在此处输入图像描述

Wrap your Views with Safeareaview from react native components https://reactnative.dev/docs/safeareaview Read more about the component here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM