When I add click event for the button it shows this error in ios simulator如何解決這個錯誤「RawText必須被包裹在明確的文本組件」的反應,本機組件
renderLastSlide(index) {
if (index === this.props.data.length - 1) {
return (
<Container>
<Content>
<Button rounded light>
<Text>Light</Text>
onPress={this.props.onComplete}
</Button>
</Content>
</Container>
);
}
}
什麼是與此代碼導致該錯誤的問題?
您的縮進太糟糕了,請編輯它。修復後,你可以自己看到你的錯誤。 –