title: react native Callback
body: <p>I am trying to pass callback func to my android native view but i get error. Can I pass callback to view as props or it is only available as invoking react method?</p>
  
  <p>Here is my code:</p>
  
  <p>Package.java</p>
  
  <pre><code>public class RMTGesturePackage implements ReactPackage {
  
  @Override
  public List&lt;NativeModule&gt; createNativeModules(ReactApplicationContext reactContext) {
      return Collections.emptyList();
  }
  
  @Override
  public List&lt;Class&lt;? extends JavaScriptModule&gt;&gt; createJSModules() {
      return Collections.emptyList();
  }
  
  @Override
  public List&lt;ViewManager&gt; createViewManagers(ReactApplicationContext reactContext) {
      return Arrays.&lt;ViewManager&gt;asList(
          new RMTGestureManager());
  }
  </code></pre>
  
  <p>RMTGestureManager.java</p>
  
  <pre><code>   @ReactProp(name="onChangeCallback")
      public void onChange(RMTGlSurfaceView rmtGlSurfaceView, final      Callback onChangeCallback) {
  
  }
  </code></pre>
  
  <p>NativeGesture.js</p>
  
  <pre><code>&lt;NativeRMTGesture onChangeCallback={function(){}}/&gt;
  </code></pre>
  
  <p>react-native run-android pass without error but on emulator i am getting "Unrecognized type: interface com.facebook.bridge.Callback for method : 
  com.rmtgesture.RMTGestureManager#onChange"</p>