Answer the question
In order to leave comments, you need to log in
What the hell is with the button in React Native?
I decided to try React Native, I already wanted a button to do everything well, but here.
Invariant Violation: Text strings must be rendered within a <Text> component.
- node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:4029:4 in createTextInstance
- node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:14495:12 in completeWork
- ... 19 more stack frames from framework internals
<View style={styles.container}>
<Text style={styles.header}>HE LO</Text>
<View>
<Button onPress={() => alert('You tapped the button!')} title="Click"/>
</View>
</View>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question