@byhealth/native-app-jssdk
Advanced tools
Comparing version 2.3.0 to 2.4.0-beta.1
@@ -24,4 +24,5 @@ import { ShareInfo, UserInfo, NewUserInfo } from './types/MemberAppJs'; | ||
* @param ios iOS视图名称 | ||
* @param obj 传参对象,JSON序列化后不宜过长 | ||
*/ | ||
export declare function openNativeView(android: string, ios: string): void; | ||
export declare function openNativeView(android: string, ios: string, obj?: any): void; | ||
/** | ||
@@ -28,0 +29,0 @@ * 设置窗口标题 |
@@ -57,5 +57,10 @@ "use strict"; | ||
* @param ios iOS视图名称 | ||
* @param obj 传参对象,JSON序列化后不宜过长 | ||
*/ | ||
function openNativeView(android, ios) { | ||
nativeBridge_1.default('openAppActivity', nativeBridge_1.isAndroid ? android : ios); | ||
function openNativeView(android, ios, obj) { | ||
var params = ''; | ||
if (obj !== undefined) { | ||
params = JSON.stringify(obj); | ||
} | ||
nativeBridge_1.default('openAppActivity', nativeBridge_1.isAndroid ? android : ios, params); | ||
} | ||
@@ -62,0 +67,0 @@ exports.openNativeView = openNativeView; |
@@ -40,5 +40,10 @@ /* | ||
* @param ios iOS视图名称 | ||
* @param obj 传参对象,JSON序列化后不宜过长 | ||
*/ | ||
export function openNativeView(android, ios) { | ||
nativeBridge('openAppActivity', isAndroid ? android : ios); | ||
export function openNativeView(android, ios, obj) { | ||
var params = ''; | ||
if (obj !== undefined) { | ||
params = JSON.stringify(obj); | ||
} | ||
nativeBridge('openAppActivity', isAndroid ? android : ios, params); | ||
} | ||
@@ -45,0 +50,0 @@ /** |
{ | ||
"name": "@byhealth/native-app-jssdk", | ||
"version": "2.3.0", | ||
"version": "2.4.0-beta.1", | ||
"description": "By-Health Native App Jssdk.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85168
1930
2