Skip to content

Commit

Permalink
Merge branch 'lastflashgraph'
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerfox committed Jul 17, 2018
2 parents 91fd168 + f702114 commit 0427fad
Show file tree
Hide file tree
Showing 2 changed files with 377 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/DataFragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { Button } from 'react-native-material-ui';

import LatestDataFragment from "./LatestDataFragment.js";
import HistoricalDataFragment from "./HistoricalDataFragment.js"
import LastFlashDataFragment from "./LastFlashDataFragment.js"

const initialLayout = {
height: 0,
Expand All @@ -19,7 +20,7 @@ const styles = StyleSheet.create({
flex: 1,
},
tab: {
width: Dimensions.get('window').width / 2,
width: Dimensions.get('window').width / 3,
},
tabbar: {
backgroundColor: '#19222a',
Expand All @@ -44,19 +45,19 @@ export default class DataFragment extends React.Component {
routes: [
{ key: 'first', title: 'Latest' },
{ key: 'second', title: 'Historical' },
{ key: 'third', title: 'Last Flash' },
],
refreshList: false,
}

constructor(props) {
/* constructor(props) {
super(props);
this.tableUpdate = this.tableUpdate.bind(this);
}
tableUpdate(e) {
this.setState({ refreshList: !this.state.refreshList });
this.tableDialog.show();
}
this.tableDialog.show();*/

LatestView = () => (
<LatestDataFragment/>
Expand All @@ -65,12 +66,16 @@ export default class DataFragment extends React.Component {
HistoricalView = () => (
<HistoricalDataFragment tableUpdate={this.tableUpdate} ref={historicalDataFragment => {this.historicalDataFragment = historicalDataFragment}}/>
);
LastFlashView = () => (
<LastFlashDataFragment/>
);

_handleIndexChange = index => this.setState({ index, });

_renderScene = SceneMap({
first: this.LatestView,
second: this.HistoricalView,
third: this.LastFlashView,
});

_renderTabBar = props => (
Expand Down
Loading

0 comments on commit 0427fad

Please sign in to comment.