在下面的示例中,我的“添加到收藏夹”按钮没有右对齐,并且是黑色而不是白色。我在任何地方都看不到任何定义的样式,而且我似乎无法使用指数访问safari检查器。
不正确

正确的白色星形右对齐

查看示例代码https://github.com/shoutem/ui/blob/develop/examples/components/Tiles.js -它看起来应该将其样式设置为白色并右对齐,但在我的示例中却没有这样做。我需要用封闭式包装它吗?我该如何调试它?
render() {
return (
<View style={styles.container}>
<Image
styleName="large-banner"
source={{ uri: 'https://shoutem.github.io/img/ui-toolkit/examples/image-3.png' }}
>
<Tile>
<View styleName="actions">
<Button styleName="tight clear"><Icon name="add-to-favorites" /></Button>
</View>
<Title>HOW TO MAINTAIN YOUR MENTAL HEALTH IN 2016</Title>
<Caption>6557 Americo Hills Apt. 118</Caption>
</Tile>
</Image>
....https://stackoverflow.com/questions/41561217
复制相似问题