title: Passing data from Native android to React Native
body: <p>I am trying to establish a communication between the native part (android) with javascript part(react-native).Here is the following code from Java side:-</p>
  
  <pre><code>WritableMap params = Arguments.createMap();
                      params.putString("arg1","valueToJS");
                      getReactApplicationContext().getJSModule(DeviceEventManagerModule.RCTDeviceEventEmitter.class)
                              .emit("showResult",params);
  </code></pre>
  
  <p>And the Respective Javascript file to receive the event :-</p>
  
  <pre><code>  DeviceEventEmitter.addListener('showResult', function (e: Event) {   
          // hadle the event triggered from java side
      });
  </code></pre>
  
  <p>Now in addListner where do we add the params(Argument) in order to get the "valueToJS",Since i am not able find proper documentation about DeviceEventEmitter i am finding difficult to get the value of argument arg1.Any help is highly appreciated.</p>