Skip to content

Commit

Permalink
Bug fixed - hide allLoadedView when the emptyView is rendered
Browse files Browse the repository at this point in the history
  • Loading branch information
gameboyVito committed Sep 6, 2017
1 parent ad10805 commit 2e636ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/ultimateListView.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ export default class UltimateListView extends Component {

return (
<View style={styles.paginationView}>
<Text style={{alignSelf: 'center'}}>
<Text style={styles.allLoadedText}>
{this.props.allLoadedText}
</Text>
</View>
Expand Down Expand Up @@ -388,7 +388,7 @@ export default class UltimateListView extends Component {
return this.paginationWaitingView(this.onPaginate);
} else if (this.state.paginationStatus === PaginationStatus.waiting && this.props.autoPagination === true) {
return this.paginationWaitingView();
} else if (this.state.paginationStatus === PaginationStatus.allLoaded) {
} else if (this.getRows().length !== 0 && this.state.paginationStatus === PaginationStatus.allLoaded) {
return this.paginationAllLoadedView();
}

Expand Down Expand Up @@ -501,7 +501,8 @@ const styles = StyleSheet.create({
alignItems: 'center'
},
allLoadedText: {
alignSelf: 'center'
alignSelf: 'center',
color: '#bfbfbf'
},
gridItem: {
overflow: 'hidden',
Expand Down

0 comments on commit 2e636ba

Please sign in to comment.