Common JS API: native layer call for ios