Skip to content

Instantly share code, notes, and snippets.

@reime005
Created December 15, 2020 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reime005/250b7008a7e3a33fb0223fdfe7987b3c to your computer and use it in GitHub Desktop.
Save reime005/250b7008a7e3a33fb0223fdfe7987b3c to your computer and use it in GitHub Desktop.
const renderItem = props => {
const isFirstElement = props.index === 0;
const isLastElement = props.index === props.section.data.length - 1;
return (
<SettingsListItem
item={props.item}
isFirstElement={isFirstElement}
isLastElement={isLastElement}
/>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment