Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
947 views
in Technique[技术] by (71.8m points)

如何使用 react-native 实现多行对齐的样式?

image.png
如图:需要使用 RN 实现这样的一种样式,第一行的 title 和 第三行的百分比最多会有两行,中间的值最多一行,当高度被撑开时,需要每一行保持对齐,请问怎么使用 RN 怎么实现这种效果呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

每个部分都是单独的, 监听他们的大小, 计算偏移值就可以了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...