gpt4 book ai didi

size - native 库 : change thumbnail default size

转载 作者:行者123 更新时间:2023-12-04 20:00:47 26 4
gpt4 key购买 nike

我无法从 NativeBase 更改缩略图的默认大小。我可以显示默认圆圈,即小圆圈和大圆圈,但我想显示比默认大小更大的圆圈。这是我的缩略图代码:

<Thumbnail size={200} style={{margin: 30}} source={require('../../../public/images/profile/yellow.jpg')} />

Prop 大小不起作用,缩略图仍然很小。

我的 NativeBase 版本:2.3.5

最佳答案

Native Base Component 没有 size 属性,你应该添加 widthheight,还有一件事你不应该忘记了请添加 borderRadius 除以 2 以确保形状保留为 Circle

<Thumbnail style={{width: 30, height: 30, borderRadius: 30/2}} source={require('../../../public/images/profile/yellow.jpg')} />

关于size - native 库 : change thumbnail default size,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48035727/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com