Skip to content

Instantly share code, notes, and snippets.

@dharavp
Created November 27, 2018 11:27
Show Gist options
  • Save dharavp/e645b8637d9c692c39cfc66e66f1bf11 to your computer and use it in GitHub Desktop.
Save dharavp/e645b8637d9c692c39cfc66e66f1bf11 to your computer and use it in GitHub Desktop.
renderFooter = () => {
//it will show indicator at the bottom of the list when data is loading otherwise it returns null
if (!this.state.loading) return null;
return (
<ActivityIndicator
style={{ color: '#000' }}
/>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment