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

Argument of type 'string' is not assignable to parameter of type 'never'. Navigation [closed]

$
0
0
const renderItem = ({item: {urls, alt_description, user, id, color}}) => {return (<TouchableOpacity    style={styles.imageItem}    activeOpacity={0.6}    onPress={() => navigation.navigate('Images', {id, color})}><ImageBackground style={styles.image} source={{uri: urls.regular}}><View style={styles.imageItemInfo}><Text style={styles.imageInfoTitle}>{alt_description}</Text><Text style={styles.imageInfoAuthor}>{user.username}</Text></View></ImageBackground></TouchableOpacity>);};

Got this problem here with TypeScriptenter image description here


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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