<commit_before>import React, { Component } from 'react';
import Separator from './Separator.js';
import MyMap from './Map.js';


import {
  StyleSheet,
  Text,
  View,
  Image,
  Navigator,
  ScrollView,
  TouchableOpacity,
} from 'react-native';


class WishList extends Component {

  readMore(){
    console.log(this)
    this.props.navigator.push({
      title: 'Detail',
      card: this.props
    });
  }
  render(){
    var likeCollection = this.props.likeCollection
    // var lat = likeCollection[0].lat
    // var lng = likeCollection[0].lng
    var list = likeCollection.map((place,index) => {
    var imageLink = place.photos[0]

      return (
        <View key={index}>
          <View style={styles.rowContainer}>
          <TouchableOpacity
            onPress={this.readMore.bind(this)}
          >
            <Image style={styles.image} source={{uri: imageLink}}/>
          </TouchableOpacity>
            <Text style={styles.welcome}> {place.title}</Text>
          </View>
          <Separator />
        </View>
      )
    });

    return(
      <View>
      <MyMap collection={likeCollection}/>
      <ScrollView  horizontal={true} style={styles.containerWishList}>
        {list}
      </ScrollView>
      </View>
    )
  }
};

const styles = StyleSheet.create({
  containerWishList: {
    flex: 1,
    //  justifyContent: 'center',
    //  alignItems: 'center',
    backgroundColor: 'white',
   },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  image:{
    height:190,
    width:180,
    borderRadius:50,
    marginTop: 10,
    alignSelf: 'center'
  },
  rowContainer: {
    padding: 10,
    width: 250,
  },
    rowTitle: {
    color: '#48BBEC',
    fontSize: 16
  },
  rowContent: {
    fontSize: 19
  },
});

export default WishList;
<commit_msg>trying to make wishlist clickable, method works but doesn't wait for click event, keep trying<commit_after>import React, { Component } from 'react';
import Separator from './Separator.js';
import MyMap from './Map.js';


import {
  StyleSheet,
  Text,
  View,
  Image,
  Navigator,
  ScrollView,
  TouchableOpacity,
} from 'react-native';


class WishList extends Component {

  readMore(place){
    this.props.navigator.push({
      title: 'Detail',
      card: place
    });
  }
  render(){
    var likeCollection = this.props.likeCollection
    var list = likeCollection.map((place,index) => {
    var imageLink = place.photos[0]
      return (
        <View key={index}>
          <View style={styles.rowContainer}>
          <TouchableOpacity
            onPress={this.readMore(place)}
          >
            <Image style={styles.image} source={{uri: imageLink}}/>
          </TouchableOpacity>
            <Text style={styles.welcome}> {place.title}</Text>
          </View>
          <Separator />
        </View>
      )
    });

    return(
      <View>
      <MyMap collection={likeCollection}/>
      <ScrollView  horizontal={true} style={styles.containerWishList}>
        {list}
      </ScrollView>
      </View>
    )
  }
};

const styles = StyleSheet.create({
  containerWishList: {
    flex: 1,
    //  justifyContent: 'center',
    //  alignItems: 'center',
    backgroundColor: 'white',
   },
  welcome: {
    fontSize: 20,
    textAlign: 'center',
    margin: 10,
  },
  image:{
    height:190,
    width:180,
    borderRadius:50,
    marginTop: 10,
    alignSelf: 'center'
  },
  rowContainer: {
    padding: 10,
    width: 250,
  },
    rowTitle: {
    color: '#48BBEC',
    fontSize: 16
  },
  rowContent: {
    fontSize: 19
  },
});

export default WishList;

{'fraction_non_alphanumeric': 0.14035087719298245, 'fraction_numerical': 0.015594541910331383, 'mean_word_length': 2.319778188539741, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '723604', 'n_tokens_mistral': 1201, 'n_tokens_neox': 1148, 'n_words': 249}