'Text strings must be rendered within a <Text> component, while importing a component into the main app the error appears
Solution 1:[1]
In your App.js keep the WelcomePage inside a view
export default function App() {
return (
<View>
<WelcomePage />
</View>
)
}
In your WelcomePage keep the Textinside a view
export default function WelcomePage() {
return (
<View>
<Text>Hello</Text>
</View>
)
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | sourav dey |
