通常,您可以使用Label html元素为Web应用程序添加标签.您如何在Reaction Native中实现此结果?
下面是我正在使用的Reaction本机switch 组件:https://reactnative.dev/docs/switch
当我try 手动添加文本作为标签时,它的格式不正确.这只是一个CSS问题,还是有我可以使用的标签元素?
<Text> Deliverable?</Text>
<Switch
trackColor={{ false: '#767577', true: '#81b0ff' }}
thumbColor={isEnabled ? '#f5dd4b' : '#f4f3f4'}
ios_backgroundColor="#3e3e3e"
onValueChange={toggleSwitch}
value={isEnabled}
style={styles.switch}
/>