• get a native service instance by service name

    Parameters

    • serviceName: string

    Returns ServiceInstance

    Example


    import * as native from 'native';

    // namespace is needed for the service name
    let instance = native.getServiceInstance('nativeServiceName');
    let params = {};
    let res = instance.invoke('methodName', params);