awt-helmet-adherence
v1.0.75
Published
QRcode scanner for helmet detection at the stations.
Downloads
27
Maintainers
Readme
AWT QR code scanner
Installation
npm i awt-helmet-adherence
Integration of package in app.js
example #1
import React from 'react';
import { SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, useColorScheme, View, } from 'react-native';
import AWT from 'awt-helmet-adherence';
import {COLOR, ThemeContext, getTheme} from 'react-native-material-ui';
const uiTheme = { palette: { primaryColor: COLOR.blue500, }, toolbar: { container: { height: 50, }, }, };
const App = () => {
/* Passing user data as props */
const user_detais = { "base_Location":"" "email": "[email protected]" "firstName": "Tuheen Sengupta", "lastName": "", "email": "[email protected]" "learning_Manager_Name": "1377", "tM/CRM": "93203", "nH_Required": "", "category": "93245", "station": "96001", "city": "158", "state": "159", "station_Type": "130", "joining_Date": "", "store_ID": "", "emp_ID": "", "sM/CTL": "96532", "ooR_Days": "0", "zone": "94907", "training_Manager_Name": "96045", "pwd": "", "channel": "31641", "designation": "94569", "vendor": "1074" };
return (
<ThemeContext.Provider value={getTheme(uiTheme)}>
<StatusBar
barStyle="dark-content"
hidden={false}
backgroundColor="#8e165e"
translucent={true}
barStyle="light-content"
/>
< AWT data={user_details} registrationKey="awt_registered" />
</ThemeContext.Provider>
);
};
export default App;