Skip to content

Commit 2e636ba

Browse files
committed
Bug fixed - hide allLoadedView when the emptyView is rendered
1 parent ad10805 commit 2e636ba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ultimateListView.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export default class UltimateListView extends Component {
315315

316316
return (
317317
<View style={styles.paginationView}>
318-
<Text style={{alignSelf: 'center'}}>
318+
<Text style={styles.allLoadedText}>
319319
{this.props.allLoadedText}
320320
</Text>
321321
</View>
@@ -388,7 +388,7 @@ export default class UltimateListView extends Component {
388388
return this.paginationWaitingView(this.onPaginate);
389389
} else if (this.state.paginationStatus === PaginationStatus.waiting && this.props.autoPagination === true) {
390390
return this.paginationWaitingView();
391-
} else if (this.state.paginationStatus === PaginationStatus.allLoaded) {
391+
} else if (this.getRows().length !== 0 && this.state.paginationStatus === PaginationStatus.allLoaded) {
392392
return this.paginationAllLoadedView();
393393
}
394394

@@ -501,7 +501,8 @@ const styles = StyleSheet.create({
501501
alignItems: 'center'
502502
},
503503
allLoadedText: {
504-
alignSelf: 'center'
504+
alignSelf: 'center',
505+
color: '#bfbfbf'
505506
},
506507
gridItem: {
507508
overflow: 'hidden',

0 commit comments

Comments
 (0)