Skip to content

Commit 709a96a

Browse files
Add left component (#2) (#97)
1 parent 1552bca commit 709a96a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ interface AutocompleteDropdownProps {
6060
suggestionsListTextStyle?: StyleProp<TextStyle>
6161
ChevronIconComponent?: React.ReactElement
6262
RightIconComponent?: React.ReactElement
63+
LeftComponent?: React.ReactElement
6364
ClearIconComponent?: React.ReactElement
6465
InputComponent?: React.ComponentType
6566
ItemSeparatorComponent?: React.ReactElement

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ export const AutocompleteDropdown = memo(
362362
ref={containerRef}
363363
onLayout={_ => {}}
364364
style={[styles.inputContainerStyle, props.inputContainerStyle]}>
365+
{props.LeftComponent}
365366
<InputComponent
366367
ref={inputRef}
367368
value={searchText}

0 commit comments

Comments
 (0)