@convep_mobilogy/react-native-qms-plugin 0.1.9 → 0.1.10
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","requireNativeComponent","Platform","jsx","_jsx","NativeQmsDashboardView","OS","QmsDashboardView","props"],"sourceRoot":"../../src","sources":["QmsDashboardView.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,sBAAsB,EAAEC,QAAQ,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;
|
|
1
|
+
{"version":3,"names":["React","requireNativeComponent","Platform","jsx","_jsx","NativeQmsDashboardView","OS","QmsDashboardView","props"],"sourceRoot":"../../src","sources":["QmsDashboardView.tsx"],"mappings":";;AAAA;AACA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,sBAAsB,EAAEC,QAAQ,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA;AAUhE,MAAMC,sBAAsB,GAAGJ,sBAAsB,CACnDC,QAAQ,CAACI,EAAE,KAAK,KAAK,GAAG,kBAAkB,GAAG,cAC/C,CAAC;AAED,OAAO,MAAMC,gBAA6C,GAAIC,KAAK,IAAK;EACtE,oBAAOJ,IAAA,CAACC,sBAAsB;IAAA,GAAKG;EAAK,CAAG,CAAC;AAC9C,CAAC","ignoreList":[]}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ViewStyle } from 'react-native';
|
|
3
|
-
type
|
|
3
|
+
export type QmsDashboardProps = {
|
|
4
4
|
style?: ViewStyle;
|
|
5
|
+
clientID?: string;
|
|
6
|
+
clientCode?: string;
|
|
7
|
+
userToken?: string;
|
|
5
8
|
};
|
|
6
|
-
export declare const QmsDashboardView: React.FC<
|
|
7
|
-
export {};
|
|
9
|
+
export declare const QmsDashboardView: React.FC<QmsDashboardProps>;
|
|
8
10
|
//# sourceMappingURL=QmsDashboardView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QmsDashboardView.d.ts","sourceRoot":"","sources":["../../../src/QmsDashboardView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,
|
|
1
|
+
{"version":3,"file":"QmsDashboardView.d.ts","sourceRoot":"","sources":["../../../src/QmsDashboardView.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAMF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAExD,CAAC"}
|
package/package.json
CHANGED
package/src/QmsDashboardView.tsx
CHANGED
|
@@ -3,14 +3,17 @@ import React from 'react';
|
|
|
3
3
|
import { requireNativeComponent, Platform } from 'react-native';
|
|
4
4
|
import type { ViewStyle } from 'react-native';
|
|
5
5
|
|
|
6
|
-
type
|
|
6
|
+
export type QmsDashboardProps = {
|
|
7
7
|
style?: ViewStyle;
|
|
8
|
+
clientID?: string; // use camelCase in JS
|
|
9
|
+
clientCode?: string;
|
|
10
|
+
userToken?: string; // avoid logging this
|
|
8
11
|
};
|
|
9
12
|
|
|
10
|
-
const NativeQmsDashboardView = requireNativeComponent<
|
|
13
|
+
const NativeQmsDashboardView = requireNativeComponent<QmsDashboardProps>(
|
|
11
14
|
Platform.OS === 'ios' ? 'QmsDashboardView' : 'QmsDashboard'
|
|
12
15
|
);
|
|
13
16
|
|
|
14
|
-
export const QmsDashboardView: React.FC<
|
|
17
|
+
export const QmsDashboardView: React.FC<QmsDashboardProps> = (props) => {
|
|
15
18
|
return <NativeQmsDashboardView {...props} />;
|
|
16
19
|
};
|