To handle defect managment
npm install @convep_mobilogy/react-native-qms-pluginA React Native plugin that provides \\QMS (Quality Management System)\\ components and APIs for defect management, dashboard visualization, and QMS workflow operations.
---
Install using npm:
``sh`
npm install @convep_mobilogy/react-native-qms-plugin
Or using Yarn:
`sh`
yarn add @convep_mobilogy/react-native-qms-plugin
---
Autolinking should set up everything automatically.
1. Navigate to your iOS folder:
`sh`
cd ios
pod install
---
Autolinking should set up everything automatically, but you need to add our private Maven repo and enable core library desugaring.
1. In your android/build.gradle, add the Maven repo with your credentials:
`gradle
allprojects {
repositories {
google()
mavenCentral()
maven { url = uri("https://www.jitpack.io") } // keep JitPack if RN needs it
maven {
url = uri("https://raw.githubusercontent.com/ConvepMobilogy/QMS_framework/main/maven-repo")
}
}
}
`
2. In android/app/build.gradle, enable core library desugaring (inside dependencies):
`gradle`
dependencies {
// ...
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.0.4")
}android
2. In android/app/build.gradle, enable core library desugaring (inside ):
compileOptions {
// you can match whatever your rootProject uses, 11 is safe
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
// this is what your AAR is demanding
coreLibraryDesugaringEnabled true
}
---
Below are simple examples to help you use each part of the plugin.
`tsx
import React from 'react';
import {
StatusBar,
useColorScheme,
SafeAreaView,
View,
StyleSheet,
} from 'react-native';
import { QmsDashboardView } from '@convep_mobilogy/react-native-qms-plugin';
export default function App() {
const isDarkMode = useColorScheme() === 'dark';
const clientID= '
const userToken = '
const clientCode='
return (
clientID= {clientID}
clientCode={clientCode}
userToken={userToken}
onClose={() => {
// Android: unmount the SDK view or navigate back when the SDK exits
}}
/>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
});
``
---
MIT © Convep