Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

React Native Elements cannot be used as a JSX component - Typescript

$
0
0

'Text' cannot be used as a JSX component.

Im using the Text elements as example but it happens for all react native elements.

Code example:

  return (<><TechnicianDetailCard technicianData={technicianData} /><TouchableOpacity        onPress={() => {          saveContact();        }}><Text>Add To contacts</Text></TouchableOpacity><TouchableOpacity        onPress={() => {          copyPhoneNumber();        }}><Text>Copy Phone Number</Text></TouchableOpacity></>  );

Is there any solution to this?


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>