@@ -7,9 +7,6 @@ import DataTableHeader from './DataTableHeader';
7
7
import Line from './Line' ;
8
8
import sortData from '../functions/sort' ;
9
9
import showCurrentProgress from '../functions/showCurrentProgress' ;
10
- // import 'react-native-gesture-handlerasd'
11
-
12
- const { width, height } = Dimensions . get ( 'window' ) ;
13
10
14
11
export const COL_TYPES = {
15
12
// RADIO: 'RADIO',
@@ -18,27 +15,16 @@ export const COL_TYPES = {
18
15
// ICON: 'ICON'
19
16
}
20
17
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
-
30
18
const TOTAL_WIDTH = 100 ; //'100%'
31
19
32
- const defaultShowRows = 3 ; //means 3 percent
33
-
34
20
class DataTable extends React . PureComponent {
35
21
state = {
36
22
data : [ ] , //[{...}, {...}, ....]
37
23
displayData : [ ] , //currentlyDisplayData
38
24
colNames : [ ] , //['ad', 'asd', ...]
39
25
defaultEachColumnWidth : '50%' ,
40
26
// noOfCols: 0, //default 2, set 0 because of fast rendering at start
41
- widthOfContainer : width ,
27
+ widthOfContainer : 0 ,
42
28
isSortedAssending : { recentlySortedCol : null } , //ColName: true||false
43
29
startDataArray : [ ] , //[{id: startData}]
44
30
endDataArray : [ ] , //[{id, endData}]
0 commit comments