Skip to content

Commit

Permalink
Merge pull request #13 from cmtanko/APP-014-fully-scrollable-view
Browse files Browse the repository at this point in the history
[APP-014] Fix scrolling issue
  • Loading branch information
cmtanko authored Apr 27, 2021
2 parents 261f9b6 + 2e17d02 commit ca26861
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
12 changes: 6 additions & 6 deletions src/components/Dashboard/index.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
import _ from 'lodash';
import React, {Component} from 'react';
import {
Fab,
Tab,
Tabs,
Content,
Fab,
View,
Icon,
Container,
ScrollableTab,
} from 'native-base';

// import ActionButtonView from './ActionButtonView';
import RecordList from './RecordList';
import {MONTHS} from '../../config';
import RecordList from './RecordList';

import cs from '../../styles/common';

Expand All @@ -36,11 +35,12 @@ export default class Dashboard extends Component {
<Tab
key={id}
heading={val}
style={cs.bg_dark_lightblue}
tabStyle={cs.bg_dark_blue}
activeTabStyle={cs.bg_dark_lightblue}>
<Content style={cs.bg_dark_lightblue}>
<View style={cs.bg_dark_lightblue}>
<RecordList selectedMonth={id} navigate={navigate} />
</Content>
</View>
</Tab>
);
});
Expand Down
8 changes: 1 addition & 7 deletions src/components/ReportPage/ReportDetail.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
import {connect} from 'react-redux';
import React, {useState, useEffect} from 'react';
import Carousel from 'react-native-carousel-view';
import {
VictoryPie,
VictoryBar,
VictoryLabel,
VictoryTheme,
} from 'victory-native';
import {VictoryPie, VictoryBar, VictoryTheme} from 'victory-native';
import {Text, View, Dimensions, Platform} from 'react-native';

import {} from 'react-native';
Expand Down Expand Up @@ -83,7 +78,6 @@ const ReportDetail = (props) => {
Cash Flow
</Text>
<VictoryBar
domainPadding={{x: [10, -10], y: 5}}
theme={VictoryTheme.material}
colorScale={colorScale}
width={deviceWidth - 40}
Expand Down
6 changes: 3 additions & 3 deletions src/components/ReportPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import _ from 'lodash';
import React from 'react';
import moment from 'moment';
import {connect} from 'react-redux';
import {Container, Content, Button, Segment, Text} from 'native-base';
import {Container, View, Button, Segment, Text} from 'native-base';

import cs from '../../styles/common';
import {selectReportType} from '../../actions';
Expand Down Expand Up @@ -96,13 +96,13 @@ const ReportPage = (props) => {
</Button>
</Segment>

<Content>
<View>
<ReportDetail
data={getData(incomeCatgories, records)}
expenseData={getData(expenseCategories, records)}
yearWiseData={yearWiseData}
/>
</Content>
</View>
</Container>
);
};
Expand Down

0 comments on commit ca26861

Please sign in to comment.