【发布时间】:2019-02-22 20:28:25
【问题描述】:
我有段,我希望它们充当标签。我尝试使用每个段的react-navigationonPress,但看起来不太好。
我希望片段保持固定在顶部,并且在点击每个片段时内容应该改变 或 调用特定的组件 无需重新加载或注意到屏幕已更改。
<Segment>
<Button first>
<Text>Puppies</Text>
</Button>
<Button>
<Text>Kittens</Text>
</Button>
<Button last active>
<Text>Cubs</Text>
</Button>
</Segment>
<Content>
<Text>Awesome segment</Text>
</Content>
【问题讨论】:
标签: react-native native-base segment