Skip to content

Commit

Permalink
Changes 'isItemSelected' prop to be use the primitive boolean values …
Browse files Browse the repository at this point in the history
…and not the calculating function
  • Loading branch information
OrLavy committed Jun 24, 2019
1 parent 1c9fd02 commit 4e75628
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/components/RowSubItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ class RowSubItem extends Component {
uniqueKey,
selectChildren,
highlightedChildren,

// OL_CHANGE
customSubItemContentRenderer: CustomSubItemContentRenderer
} = this.props

Expand Down Expand Up @@ -173,7 +171,7 @@ class RowSubItem extends Component {
>
{!shouldUseCostumeRender && this._renderDefaultContent()}

{shouldUseCostumeRender && <CustomSubItemContentRenderer subItem={subItem} isItemSelected={this._itemSelected}/> }
{shouldUseCostumeRender && <CustomSubItemContentRenderer subItem={subItem} isItemSelected={itemSelected}/> }
</TouchableOpacity>
</View>
)
Expand Down

0 comments on commit 4e75628

Please sign in to comment.