简体   繁体   中英

Height of component in React Native

在此处输入图像描述

As you see in the image, the styling of the component is as follows: <TouchableOpacity style={{ height: listDataSource[item.key].isExpanded ? 500 : 140, width: widthw * 0.8, marginHorizontal: 12, backgroundColor: 'red', }}

Now when isExpanded is true my other item in the flat list moves to the top.

Can anyone please help how to stick the other item in bottom only?

试试这个平面列表

contentContainerStyle={{alignItems: 'flex-end'}}

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