get a native service instance by service name
import * as native from 'native';// namespace is needed for the service namelet instance = native.getServiceInstance('nativeServiceName');let params = {};let res = instance.invoke('methodName', params); Copy
import * as native from 'native';// namespace is needed for the service namelet instance = native.getServiceInstance('nativeServiceName');let params = {};let res = instance.invoke('methodName', params);
get a native service instance by service name