title: How to call a native view method from JavaScript
body: <p>I have an Android class that extends <code>SimpleViewManager</code> class and encapsulates a <code>MapView</code>. Setting props from React Native JavaScript class works like a charm (using the <code>@ReactProp</code> annotation). However, i'd like to be able to call a method on the view, something like the following:</p>
  
  <pre><code>public void centerToMyLocation(MapView view) {
      view.getController().setCenter(myLocation);
  }
  </code></pre>
  
  <p>I've tried using the <code>@ReactMethod</code> annotation, getting a ref for the <code>MapView</code> in JavaScript and then call the <code>centerToMyLocation</code> method on that object. But it doesn't work (I get <code>mapViewRef.centerToMyLocation is not a function</code> error).</p>
  
  <p>How can I call the method from a JavaScript class where I render the native <code>MapView</code> component?</p>