Skip to content

Commit 9ac27b6

Browse files
committed
Removed Line Outsided Problem
1 parent ddf9828 commit 9ac27b6

File tree

2 files changed

+3
-27
lines changed

2 files changed

+3
-27
lines changed

src/DataTable.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import DataTableHeader from './DataTableHeader';
77
import Line from './Line';
88
import sortData from '../functions/sort';
99
import showCurrentProgress from '../functions/showCurrentProgress';
10-
// import 'react-native-gesture-handlerasd'
11-
12-
const { width, height } = Dimensions.get('window');
1310

1411
export const COL_TYPES = {
1512
// RADIO: 'RADIO',
@@ -18,27 +15,16 @@ export const COL_TYPES = {
1815
// ICON: 'ICON'
1916
}
2017

21-
// let TouchableComponent = TouchableOpacity
22-
// export const PADDING_HORIZONTAL = 10;
23-
24-
// if (Platform.OS == 'android' && Platform.Version >= 21) {
25-
// TouchableComponent = TouchableNativeFeedback
26-
// }
27-
28-
const PADDING_HORIZONTAL = 10;
29-
3018
const TOTAL_WIDTH = 100; //'100%'
3119

32-
const defaultShowRows = 3; //means 3 percent
33-
3420
class DataTable extends React.PureComponent {
3521
state = {
3622
data: [], //[{...}, {...}, ....]
3723
displayData: [], //currentlyDisplayData
3824
colNames: [],//['ad', 'asd', ...]
3925
defaultEachColumnWidth: '50%',
4026
// noOfCols: 0, //default 2, set 0 because of fast rendering at start
41-
widthOfContainer: width,
27+
widthOfContainer: 0,
4228
isSortedAssending: { recentlySortedCol: null }, //ColName: true||false
4329
startDataArray: [],//[{id: startData}]
4430
endDataArray: [], //[{id, endData}]

src/DataTableRow.js

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -62,21 +62,11 @@ const styles = StyleSheet.create({
6262
},
6363
rowCellText: {
6464
color: 'black',
65-
fontSize: 14.5,
66-
// backgroundColor: 'green',
67-
// flex: 1
68-
// flexWrap: 'wrap'
65+
fontSize: 14.5
6966
},
7067
rowCellContainer: {
7168
paddingTop: 10,
7269
paddingBottom: 10,
73-
// backgroundColor: 'green',
74-
},
75-
// line: {
76-
// height: 1,
77-
// backgroundColor: '#e3e3e3',
78-
// alignSelf: 'center',
79-
// width
80-
// }
70+
}
8171
});
8272

0 commit comments

Comments
 (0)