Home > Blockchain >  render error ract-native (text strings must be rendered within a<text>component)
render error ract-native (text strings must be rendered within a<text>component)

Time:10-01

I couldn't figure it out, I tried a lot of things

enter image description here

CodePudding user response:

You are using <view> and <text> instead of <View> and <Text>
try this,

import { Text, View } from 'react-native'
import React, {useState} from 'react'

const App = () => {
  const [show, setShow] = useState(false);
  return (
    <View>
      <Text>Hello</Text>
    </View>
  )
}

export default App;

CodePudding user response:

my code

enter image description here

  • Related