title: Exception in 'NativeModules': java.lang.RuntimeException: Got unknown argument class: Object
body: <p>I am trying to call a native <code>ReactMethod</code> from <code>react native</code> but it is throwing the following error:</p>
  
  <blockquote>
    <p>C++ Exception in 'NativeModules': java.lang.RuntimeException: Got unknown argument class: Object</p>
  </blockquote>
  
  <p>This is how I have the method defined in android:</p>
  
  <pre><code>@ReactMethod
  public void setItem(String key, Object value) {
      // code
  }
  </code></pre>
  
  <p>This is how i am calling this method:</p>
  
  <pre><code>MyModule.setItem("mykey", "1234567890");
  </code></pre>
  
  <p>I wonder if <code>ReactMethod</code> supports object type as parameter or not? Because I want to set any type of item.</p>