Skip to content
This repository has been archived by the owner on May 29, 2020. It is now read-only.

Add on press example #6

Open
bayurstarcool opened this issue Dec 28, 2017 · 1 comment
Open

Add on press example #6

bayurstarcool opened this issue Dec 28, 2017 · 1 comment

Comments

@bayurstarcool
Copy link

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

@nendijuned
Copy link

nendijuned commented Jan 19, 2018

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> );

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants