Skip to content

Commit 4e75628

Browse files
committed
Changes 'isItemSelected' prop to be use the primitive boolean values and not the calculating function
1 parent 1c9fd02 commit 4e75628

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/components/RowSubItem.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,6 @@ class RowSubItem extends Component {
136136
uniqueKey,
137137
selectChildren,
138138
highlightedChildren,
139-
140-
// OL_CHANGE
141139
customSubItemContentRenderer: CustomSubItemContentRenderer
142140
} = this.props
143141

@@ -173,7 +171,7 @@ class RowSubItem extends Component {
173171
>
174172
{!shouldUseCostumeRender && this._renderDefaultContent()}
175173

176-
{shouldUseCostumeRender && <CustomSubItemContentRenderer subItem={subItem} isItemSelected={this._itemSelected}/> }
174+
{shouldUseCostumeRender && <CustomSubItemContentRenderer subItem={subItem} isItemSelected={itemSelected}/> }
177175
</TouchableOpacity>
178176
</View>
179177
)

0 commit comments

Comments
 (0)