@dhiraj0720/report1chart 2.3.1 → 2.3.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhiraj0720/report1chart",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "main": "src/index.jsx",
5
5
  "scripts": {
6
6
  "test": "echo 'No tests'"
package/src/index.jsx CHANGED
@@ -36,10 +36,13 @@ const AnalyticsReports = ({ config }) => {
36
36
 
37
37
  // 👉 AFTER LOADER → SHOW REPORT LIST
38
38
  if (!active) {
39
- <SafeScreen>
40
- <ReportListScreen onSelect={setActive} />
41
- </SafeScreen>
42
- }
39
+ return (
40
+ <SafeScreen>
41
+ <ReportListScreen onSelect={setActive} />
42
+ </SafeScreen>
43
+ );
44
+ }
45
+
43
46
 
44
47
  // 👉 REPORT 1
45
48
  if (active === 1) {
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react';
2
2
  import { ScrollView, Text, ActivityIndicator } from 'react-native';
3
3
  import fetchReport1 from '../api/report1Fetcher';
4
4
  import Report1Card from '../components/Report1Card';
5
- import SafeScreen from '../components/SafeScreen';
6
5
 
7
6
  const Report1Screen = ({ endpoint, token, onBack }) => {
8
7
  const [rows, setRows] = useState(null);
@@ -14,7 +13,7 @@ const Report1Screen = ({ endpoint, token, onBack }) => {
14
13
  if (!rows) return <ActivityIndicator />;
15
14
 
16
15
  return (
17
- <SafeScreen>
16
+
18
17
  <ScrollView style={{ padding: 16 }}>
19
18
  <Text onPress={onBack} style={{ marginBottom: 12 }}>‹ Back</Text>
20
19
  <Text style={{ fontSize: 18, fontWeight: '700', marginBottom: 12 }}>
@@ -25,7 +24,6 @@ const Report1Screen = ({ endpoint, token, onBack }) => {
25
24
  <Report1Card key={i} item={r} />
26
25
  ))}
27
26
  </ScrollView>
28
- </SafeScreen>
29
27
  );
30
28
  };
31
29
 
@@ -65,7 +65,6 @@ const filteredBar = filterChartByMonth(bar, month);
65
65
 
66
66
 
67
67
  return (
68
- <SafeScreen>
69
68
  <ScrollView style={{ padding: 16 }}>
70
69
  <Text onPress={onBack}>‹ Back</Text>
71
70
 
@@ -92,7 +91,7 @@ const filteredBar = filterChartByMonth(bar, month);
92
91
 
93
92
 
94
93
  </ScrollView>
95
- </SafeScreen>
94
+
96
95
  );
97
96
  };
98
97
 
@@ -53,7 +53,7 @@ const filteredBar = filterChartByMonth(bar, month);
53
53
 
54
54
 
55
55
  return (
56
- <SafeScreen>
56
+
57
57
  <ScrollView style={{ padding: 16 }}>
58
58
  <Text onPress={onBack}>‹ Back</Text>
59
59
 
@@ -72,7 +72,7 @@ const filteredBar = filterChartByMonth(bar, month);
72
72
  <SvgLineChart data={filteredLine} />
73
73
  <SvgBarLineChart data={filteredBar} />
74
74
  </ScrollView>
75
- </SafeScreen>
75
+
76
76
  );
77
77
  };
78
78