@momo-kits/template 0.81.13 → 0.81.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/TrustBanner/index.tsx +1 -1
- package/TrustBanner/types.ts +28 -1
- package/package.json +1 -1
package/TrustBanner/index.tsx
CHANGED
package/TrustBanner/types.ts
CHANGED
|
@@ -9,11 +9,38 @@ export type TrustBannerCallbackParams = {
|
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
export type TrustBannerProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Optional. Styles to customize the appearance of the banner. Can be a single
|
|
14
|
+
* style object or an array of style objects.
|
|
15
|
+
*/
|
|
12
16
|
style?: ViewStyle | ViewStyle[];
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Optional. The name of the screen where the banner is displayed. This can be
|
|
20
|
+
* used to identify the context in which the banner appears.
|
|
21
|
+
*/
|
|
13
22
|
screenName?: string;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Optional. The name of the service or feature the banner is associated with.
|
|
26
|
+
* This helps in providing contextual information within the banner content.
|
|
27
|
+
*/
|
|
14
28
|
serviceName?: string;
|
|
15
|
-
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Optional. A callback function can be openWeb or startFeatureCode,
|
|
32
|
+
* return params:
|
|
33
|
+
* service_name,
|
|
34
|
+
* screen_name,
|
|
35
|
+
* component_name,
|
|
36
|
+
* url_config,
|
|
37
|
+
* feature_code,
|
|
38
|
+
*/
|
|
16
39
|
onPress?: (params: TrustBannerCallbackParams) => void;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Optional. instance of maxApi trackEvent function.
|
|
43
|
+
*/
|
|
17
44
|
trackEvent?: (eventName: string, params: TrustBannerCallbackParams) => void;
|
|
18
45
|
};
|
|
19
46
|
|