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

Unable to map the array and get the values on Screen React Native

$
0
0
const DynPut: FC<Props> = Props => {const [value, setValue] = useState<string>(['1', '2', '3', '4']);  return (<View>      {value.map(v => {<Text>{v}</Text>;      })}</View>  );};

Unable to get the values 1-5 on the screen. am using typescript and also saved the file with .tsx extension


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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