Calls RCTDeviceEventEmitter.emit to JavaScript, with given event name and an optional list of arguments.