@vasanth_3105/battery-tracker 0.0.1
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/lib/commonjs/BatteryScreen.js +42 -0
- package/lib/commonjs/BatteryScreen.js.map +1 -0
- package/lib/commonjs/index.js +13 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/BatteryScreen.js +36 -0
- package/lib/module/BatteryScreen.js.map +1 -0
- package/lib/module/index.js +4 -0
- package/lib/module/index.js.map +1 -0
- package/lib/typescript/BatteryScreen.d.ts +3 -0
- package/lib/typescript/BatteryScreen.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +2 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/package.json +35 -0
- package/src/BatteryScreen.tsx +17 -0
- package/src/index.tsx +1 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BatteryScreen = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
const BatteryScreen = () => {
|
|
12
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
13
|
+
style: styles.container,
|
|
14
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
15
|
+
style: styles.text,
|
|
16
|
+
children: "\uD83D\uDD0B Battery Level: 100%"
|
|
17
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
18
|
+
style: styles.subtext,
|
|
19
|
+
children: "(This is the Battery Tracker Module)"
|
|
20
|
+
})]
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
exports.BatteryScreen = BatteryScreen;
|
|
24
|
+
const styles = _reactNative.StyleSheet.create({
|
|
25
|
+
container: {
|
|
26
|
+
padding: 20,
|
|
27
|
+
backgroundColor: '#e0f7fa',
|
|
28
|
+
margin: 10,
|
|
29
|
+
borderRadius: 8
|
|
30
|
+
},
|
|
31
|
+
text: {
|
|
32
|
+
fontSize: 20,
|
|
33
|
+
fontWeight: 'bold',
|
|
34
|
+
color: '#006064'
|
|
35
|
+
},
|
|
36
|
+
subtext: {
|
|
37
|
+
fontSize: 14,
|
|
38
|
+
color: '#00838f',
|
|
39
|
+
marginTop: 5
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
//# sourceMappingURL=BatteryScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_jsxRuntime","e","__esModule","default","BatteryScreen","jsxs","View","style","styles","container","children","jsx","Text","text","subtext","exports","StyleSheet","create","padding","backgroundColor","margin","borderRadius","fontSize","fontWeight","color","marginTop"],"sourceRoot":"../../src","sources":["BatteryScreen.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAsD,IAAAE,WAAA,GAAAF,OAAA;AAAA,SAAAD,uBAAAI,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/C,MAAMG,aAAa,GAAGA,CAAA,KAAM;EACjC,oBACE,IAAAJ,WAAA,CAAAK,IAAA,EAACN,YAAA,CAAAO,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5B,IAAAV,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAa,IAAI;MAACL,KAAK,EAAEC,MAAM,CAACK,IAAK;MAAAH,QAAA,EAAC;IAAsB,CAAM,CAAC,eACvD,IAAAV,WAAA,CAAAW,GAAA,EAACZ,YAAA,CAAAa,IAAI;MAACL,KAAK,EAAEC,MAAM,CAACM,OAAQ;MAAAJ,QAAA,EAAC;IAAoC,CAAM,CAAC;EAAA,CACpE,CAAC;AAEX,CAAC;AAACK,OAAA,CAAAX,aAAA,GAAAA,aAAA;AAEF,MAAMI,MAAM,GAAGQ,uBAAU,CAACC,MAAM,CAAC;EAC/BR,SAAS,EAAE;IAAES,OAAO,EAAE,EAAE;IAAEC,eAAe,EAAE,SAAS;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAE,CAAC;EACnFR,IAAI,EAAE;IAAES,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,MAAM;IAAEC,KAAK,EAAE;EAAU,CAAC;EAC5DV,OAAO,EAAE;IAAEQ,QAAQ,EAAE,EAAE;IAAEE,KAAK,EAAE,SAAS;IAAEC,SAAS,EAAE;EAAE;AAC1D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "BatteryScreen", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _BatteryScreen.BatteryScreen;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var _BatteryScreen = require("./BatteryScreen");
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_BatteryScreen","require"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"commonjs"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
5
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
6
|
+
export const BatteryScreen = () => {
|
|
7
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
8
|
+
style: styles.container,
|
|
9
|
+
children: [/*#__PURE__*/_jsx(Text, {
|
|
10
|
+
style: styles.text,
|
|
11
|
+
children: "\uD83D\uDD0B Battery Level: 100%"
|
|
12
|
+
}), /*#__PURE__*/_jsx(Text, {
|
|
13
|
+
style: styles.subtext,
|
|
14
|
+
children: "(This is the Battery Tracker Module)"
|
|
15
|
+
})]
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
const styles = StyleSheet.create({
|
|
19
|
+
container: {
|
|
20
|
+
padding: 20,
|
|
21
|
+
backgroundColor: '#e0f7fa',
|
|
22
|
+
margin: 10,
|
|
23
|
+
borderRadius: 8
|
|
24
|
+
},
|
|
25
|
+
text: {
|
|
26
|
+
fontSize: 20,
|
|
27
|
+
fontWeight: 'bold',
|
|
28
|
+
color: '#006064'
|
|
29
|
+
},
|
|
30
|
+
subtext: {
|
|
31
|
+
fontSize: 14,
|
|
32
|
+
color: '#00838f',
|
|
33
|
+
marginTop: 5
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=BatteryScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","View","Text","StyleSheet","jsx","_jsx","jsxs","_jsxs","BatteryScreen","style","styles","container","children","text","subtext","create","padding","backgroundColor","margin","borderRadius","fontSize","fontWeight","color","marginTop"],"sourceRoot":"../../src","sources":["BatteryScreen.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEtD,OAAO,MAAMC,aAAa,GAAGA,CAAA,KAAM;EACjC,oBACED,KAAA,CAACN,IAAI;IAACQ,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5BP,IAAA,CAACH,IAAI;MAACO,KAAK,EAAEC,MAAM,CAACG,IAAK;MAAAD,QAAA,EAAC;IAAsB,CAAM,CAAC,eACvDP,IAAA,CAACH,IAAI;MAACO,KAAK,EAAEC,MAAM,CAACI,OAAQ;MAAAF,QAAA,EAAC;IAAoC,CAAM,CAAC;EAAA,CACpE,CAAC;AAEX,CAAC;AAED,MAAMF,MAAM,GAAGP,UAAU,CAACY,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IAAEK,OAAO,EAAE,EAAE;IAAEC,eAAe,EAAE,SAAS;IAAEC,MAAM,EAAE,EAAE;IAAEC,YAAY,EAAE;EAAE,CAAC;EACnFN,IAAI,EAAE;IAAEO,QAAQ,EAAE,EAAE;IAAEC,UAAU,EAAE,MAAM;IAAEC,KAAK,EAAE;EAAU,CAAC;EAC5DR,OAAO,EAAE;IAAEM,QAAQ,EAAE,EAAE;IAAEE,KAAK,EAAE,SAAS;IAAEC,SAAS,EAAE;EAAE;AAC1D,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BatteryScreen"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,iBAAiB","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BatteryScreen.d.ts","sourceRoot":"","sources":["../../src/BatteryScreen.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,aAAa,yBAOzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vasanth_3105/battery-tracker",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"main": "lib/commonjs/index.js",
|
|
5
|
+
"module": "lib/module/index.js",
|
|
6
|
+
"types": "lib/typescript/index.d.ts",
|
|
7
|
+
"react-native": "src/index.tsx",
|
|
8
|
+
"source": "src/index.tsx",
|
|
9
|
+
"files": [
|
|
10
|
+
"src",
|
|
11
|
+
"lib",
|
|
12
|
+
"android",
|
|
13
|
+
"ios",
|
|
14
|
+
"cpp"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "bob build",
|
|
18
|
+
"dev": "node scripts/watcher.js"
|
|
19
|
+
},
|
|
20
|
+
"react-native-builder-bob": {
|
|
21
|
+
"source": "src",
|
|
22
|
+
"output": "lib",
|
|
23
|
+
"targets": [
|
|
24
|
+
"commonjs",
|
|
25
|
+
"module",
|
|
26
|
+
"typescript"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/react": "^19.2.7",
|
|
31
|
+
"@types/react-native": "^0.72.8",
|
|
32
|
+
"react-native-builder-bob": "^0.40.17",
|
|
33
|
+
"typescript": "^5.9.3"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { View, Text, StyleSheet } from 'react-native';
|
|
3
|
+
|
|
4
|
+
export const BatteryScreen = () => {
|
|
5
|
+
return (
|
|
6
|
+
<View style={styles.container}>
|
|
7
|
+
<Text style={styles.text}>🔋 Battery Level: 100%</Text>
|
|
8
|
+
<Text style={styles.subtext}>(This is the Battery Tracker Module)</Text>
|
|
9
|
+
</View>
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const styles = StyleSheet.create({
|
|
14
|
+
container: { padding: 20, backgroundColor: '#e0f7fa', margin: 10, borderRadius: 8 },
|
|
15
|
+
text: { fontSize: 20, fontWeight: 'bold', color: '#006064' },
|
|
16
|
+
subtext: { fontSize: 14, color: '#00838f', marginTop: 5 },
|
|
17
|
+
});
|
package/src/index.tsx
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { BatteryScreen } from './BatteryScreen';
|