Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting issue with TouchableOpacity #46

Open
HarshaVardhanPVK opened this issue Aug 28, 2017 · 0 comments
Open

Getting issue with TouchableOpacity #46

HarshaVardhanPVK opened this issue Aug 28, 2017 · 0 comments

Comments

@HarshaVardhanPVK
Copy link

HarshaVardhanPVK commented Aug 28, 2017

I am trying to use "TouchableOpacity" in my Grid View and wrote my code like bellow

showPlayer(item) {
        Alert.alert("Sample", "showPlayer");
}

renderItem(item) {
      	return <TouchableOpacity style={{alignItems:"center"}} onPress={this.showPlayer.bind(this, item)}>
      		<ImageLoad
      			placeholderSource = {require('../images/PlaceHolder.png')}
			    style={styles.thumbnail}
			    isShowActivity = {false}
			    source={{uri: thumbnailObj.value}}
		/>
   		<Text style={styles.gridText}> {item.name}</Text>
   	</TouchableOpacity>
  }

For the above code I am getting error as "undefined is not an object (evaluating 'this.showPlayer.bind')"

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

No branches or pull requests

1 participant