react-native-slideshow icon indicating copy to clipboard operation
react-native-slideshow copied to clipboard

Add on press example

Open bayurstarcool opened this issue 8 years ago • 1 comments

Can you help me, where I can place this code onPress to move to other screen detail image? Thanks

bayurstarcool avatar Dec 28 '17 21:12 bayurstarcool

try this add TouchableHighlight in Slideshow.js

const imageComponent = ( <View key={index}> <TouchableHighlight onPress={()=>console.log('I : '+this.state.position)}> <Image source={imageObject} style={{height, width}}/> </TouchableHighlight> {textComponent} </View> ); const imageComponentWithOverlay = ( <View key={index} style={styles.containerImage}> <View style={styles.overlay}> <TouchableHighlight onPress={()=>console.log('I : '+this.state.position)}> <Image source={imageObject} style={{height, width}}/> </TouchableHighlight> </View> {textComponent} </View> );

nendijuned avatar Jan 19 '18 08:01 nendijuned