title: how to set a marker in the GooglePlacesAutocomplete in react native
body: <p>I need help to solve this problem.</p>
  
  <p>The problem is in the part that we search the address in the google place picker and then it automatically sets a marker/pin in the chosen location, but the marker set does not work yet...</p>
  
  <p>The screen is:
  Diurno.js
  below is the entire code.</p>
  
  <p>Here below is the search code:</p>
  
  <pre><code>      &lt;GooglePlacesAutocomplete
      placeholder="Outro Local?"
      placeholderTextColor="#333"
      returnKeyType={'search'} // Can be left out for default return key 
      //onPress={onLocationSelected}
      onPress={(data, details = null) =&gt; { // 'details' is provided when fetchDetails = true
                  this.props.notifyChange(details.geometry.location);
              }
              }
      query={{
        key: "",
        language: "pt"
      }}
          nearbyPlacesAPI='GooglePlacesSearch'
          debounce={300}
      textInputProps={{
        onFocus: () =&gt; {
          this.setState({ searchFocused: true });
        },
        onBlur: () =&gt; {
          this.setState({ searchFocused: false });
        },
        autoCapitalize: "none",
        autoCorrect: false
      }}
      listViewDisplayed={searchFocused}
      fetchDetails ={true}
      enablePoweredByContainer={false}
  </code></pre>
  
  <p>Other code here:</p>
  
  <pre><code>        &lt;MapView 
        //onPress={this.handleMapPress}
        onPress={this.handleMapPress}  
        style={StyleSheet.absoluteFill}
        ref={map =&gt; this.mapView = map}
        rotateEnabled={true}
        scrollEnabled={true}
        showsMyLocationButton={true}
        showsUserLocation={true}
        zoomEnabled={true}
        showsPointsOfInterest={true}
        showBuildings={false} 
        //initialRegion={initialRegion}
        //region={region}
        initialRegion={region}
        provider="google"&gt; 
        {!!props &amp;&amp;
         (&lt;MapView.Marker
                  coordinate={props.region}
                 &gt;         
          &lt;/MapView.Marker&gt;
          )} 
  
        {!!location &amp;&amp;
         (&lt;MapView.Marker
                  coordinate={location}
                 onPress={this.handleMarkerPress} 
                 &gt;    
          &lt;Image source={isAddressVisible? placholder2: placholder} style={styles.icon} /&gt;         
          &lt;/MapView.Marker&gt;
          )} 
      {this.state.coordinates.map((coordinates, index, title, description, location) =&gt;(
        &lt;MapView.Marker 
        onPress={this.handleMapPress} 
        ref={mark =&gt; coordinates.mark = mark}
        key={`coordinate_${index}`} 
        title={coordinates.title}
        description={coordinates.description} 
        coordinate={{
              latitude: coordinates.latitude,
              longitude: coordinates.longitude,
              }}
        &gt;
        &lt;Image source={isAddressVisible? placholder2: placholder} style={styles.icon} /&gt; 
      &lt;/MapView.Marker&gt;
      ))}
    &lt;/MapView&gt; 
  </code></pre>