-
-
Save reime005/250b7008a7e3a33fb0223fdfe7987b3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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