Skip to content

Commit 408dbbc

Browse files
committed
PickerItem - pass on isSelected to custom renderItem
1 parent 32f56d7 commit 408dbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/picker/PickerItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const PickerItem = props => {
8383
throttleTime={0}
8484
{...accessibilityProps}
8585
>
86-
{renderItem ? renderItem(value, props, itemLabel) : _renderItem()}
86+
{renderItem ? renderItem(value, {...props, isSelected}, itemLabel) : _renderItem()}
8787
</TouchableOpacity>
8888
);
8989
};

0 commit comments

Comments
 (0)