@convep_mobilogy/react-native-qms-plugin 0.1.9 → 0.2.0

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/README.md CHANGED
@@ -1,33 +1,38 @@
1
-
2
1
  # Welcome to @convep_mobilogy/react-native-qms-plugin
3
2
 
4
- A React Native plugin that provides ****native QMS (Quality Management System)**** components and APIs for defect management, dashboard visualization, and QMS workflow operations.
3
+ A React Native plugin that provides \***\*native QMS (Quality Management System)\*\*** components and APIs for defect management, dashboard visualization, and QMS workflow operations.
5
4
 
6
5
  ---
7
6
 
8
- # Installation
7
+ # Installation
9
8
 
10
9
  Install using npm:
10
+
11
11
  ```sh
12
12
  npm install @convep_mobilogy/react-native-qms-plugin
13
13
  ```
14
+
14
15
  Or using Yarn:
16
+
15
17
  ```sh
16
18
  yarn add @convep_mobilogy/react-native-qms-plugin
17
19
  ```
20
+
18
21
  ---
19
22
 
20
23
  # iOS Setup
24
+
21
25
  Autolinking should set up everything automatically.
26
+
22
27
  1. Navigate to your iOS folder:
23
28
 
24
29
  ```sh
25
30
  cd ios
26
31
  pod install
27
32
  ```
33
+
28
34
  ---
29
35
 
30
-
31
36
  # Android Setup
32
37
 
33
38
  Autolinking should set up everything automatically.
@@ -36,65 +41,44 @@ Autolinking should set up everything automatically.
36
41
 
37
42
  # Usage
38
43
 
39
-
40
-
41
44
  Below are simple examples to help you use each part of the plugin.
45
+
42
46
  ```tsx
43
- import React from 'react';
47
+ import React from 'react';
44
48
 
45
49
  import {
46
-
47
- StatusBar,
48
-
49
- useColorScheme,
50
-
51
- SafeAreaView,
52
-
53
- View,
54
-
55
- StyleSheet,
56
-
57
- } from 'react-native';
58
-
59
- import { QmsDashboardView } from '@convep_mobilogy/react-native-qms-plugin';
60
-
61
-
62
-
63
- export default function App() {
64
-
65
- const isDarkMode = useColorScheme() === 'dark';
66
-
67
- return (
68
-
69
- <SafeAreaView>
70
-
71
- <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
72
-
73
- <View style={styles.container}>
74
-
75
- <QmsDashboardView style={styles.container} />
76
-
77
- </View>
78
-
79
- </SafeAreaView>
80
-
81
- );
82
-
50
+ StatusBar,
51
+ useColorScheme,
52
+ SafeAreaView,
53
+ View,
54
+ StyleSheet,
55
+ } from 'react-native';
56
+
57
+ import { QmsDashboardView } from '@convep_mobilogy/react-native-qms-plugin';
58
+
59
+ export default function App() {
60
+ const isDarkMode = useColorScheme() === 'dark';
61
+
62
+ return (
63
+ <SafeAreaView>
64
+ <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} />
65
+
66
+ <View style={styles.container}>
67
+ <QmsDashboardView style={styles.container} />
68
+ </View>
69
+ </SafeAreaView>
70
+ );
83
71
  }
84
-
85
-
86
- const styles = StyleSheet.create({
87
-
88
- container: {
89
-
90
- flex: 1,
91
-
92
- },
93
72
 
73
+ const styles = StyleSheet.create({
74
+ container: {
75
+ flex: 1,
76
+ },
94
77
  });
95
- ```
78
+ ```
79
+
96
80
  ---
97
81
 
98
82
  # License
99
83
 
100
- MIT © Convep
84
+ MIT © Convep
@@ -76,8 +76,7 @@ dependencies {
76
76
  implementation "com.facebook.react:react-android"
77
77
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
78
78
  compileOnly "com.facebook.react:react-android:+"
79
- // implementation files('libs/qmsplugin-release.aar')
80
- implementation files('/Users/alypmustaqim/Desktop/qmsPlugin/qmsplugin/build/outputs/aar/qmsplugin-release.aar')
79
+ implementation files('libs/qmsplugin-release.aar')
81
80
  implementation "androidx.appcompat:appcompat:1.6.1"
82
81
  implementation "com.google.android.material:material:1.12.0"
83
82
  implementation "androidx.constraintlayout:constraintlayout:2.2.0"
Binary file
@@ -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;AAOhE,MAAMC,sBAAsB,GAAGJ,sBAAsB,CACnDC,QAAQ,CAACI,EAAE,KAAK,KAAK,GAAG,kBAAkB,GAAG,cAC/C,CAAC;AAED,OAAO,MAAMC,gBAAiC,GAAIC,KAAK,IAAK;EAC1D,oBAAOJ,IAAA,CAACC,sBAAsB;IAAA,GAAKG;EAAK,CAAG,CAAC;AAC9C,CAAC","ignoreList":[]}
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 Props = {
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<Props>;
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,KAAK,KAAK,GAAG;IACX,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAMF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAE5C,CAAC"}
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@convep_mobilogy/react-native-qms-plugin",
3
- "version": "0.1.9",
3
+ "version": "0.2.0",
4
4
  "description": "To handle defect managment",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -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 Props = {
6
+ export type QmsDashboardProps = {
7
7
  style?: ViewStyle;
8
+ clientID?: string;
9
+ clientCode?: string;
10
+ userToken?: string;
8
11
  };
9
12
 
10
- const NativeQmsDashboardView = requireNativeComponent<Props>(
13
+ const NativeQmsDashboardView = requireNativeComponent<QmsDashboardProps>(
11
14
  Platform.OS === 'ios' ? 'QmsDashboardView' : 'QmsDashboard'
12
15
  );
13
16
 
14
- export const QmsDashboardView: React.FC<Props> = (props) => {
17
+ export const QmsDashboardView: React.FC<QmsDashboardProps> = (props) => {
15
18
  return <NativeQmsDashboardView {...props} />;
16
19
  };