<picker style="position: relative;flex: 1;background-color: #007AFF;"> <view style="position: absolute;left:0;top:0; 100%;padding:10px 0;background-color: red;flex: 1;height: 100%;"></view> </picker>