Skip to content

Commit 0987bfd

Browse files
authored
Merge pull request #137 from mmccartney/mmccartney-patch-1
Document signature for `renderRow()` prop
2 parents 3e7f9e0 + 040cef4 commit 0987bfd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Prop | Type | Optional | Default | Description
7474
`dropdownTextStyle` | object | Yes | | Style of the dropdown option text.
7575
`dropdownTextHighlightStyle` | object | Yes | | Style of the dropdown selected option text.
7676
`adjustFrame` | func | Yes | | This is a callback after the frame of the dropdown have been calculated and before showing. You will receive a style object as argument with some of the props like `width` `height` `top` `left` and `right`. Change them to appropriate values that accord with your requirement and **make the new style as the return value of this function**.
77-
`renderRow` | func | Yes | | Customize render option rows. **Will render a default row if `null`/`undefined`.**
77+
`renderRow` | func | Yes | | Customize render option rows: `function(option,index,isSelected)` **Will render a default row if `null`/`undefined`.**
7878
`renderSeparator` | func | Yes | | Customize render dropdown list separators. **Will render a default thin gray line if `null`/`undefined`.**
7979
`renderButtonText` | func | Yes | | Use this to extract and return text from option object. This text will show on button after option selected. **Invalid in wrapper mode.**
8080
`onDropdownWillShow`| func | Yes | | Trigger when dropdown will show by touching the button. **Return `false` can cancel the event.**

0 commit comments

Comments
 (0)