-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Danish Amin
committed
Jun 23, 2022
1 parent
a4364f0
commit 5f34cbd
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
import {ViewStyle} from 'react-native' | ||
export interface SelectListProps { | ||
|
||
/** | ||
* Fn to set Selected option value which will be stored in your local state | ||
*/ | ||
setSelected: React.Dispatch<React.SetStateAction<undefined>>, | ||
|
||
/** | ||
* Placeholder text that will be displayed in the select box | ||
*/ | ||
placeholder?: string, | ||
|
||
/** | ||
* Additional styles for select box | ||
*/ | ||
boxStyles?: ViewStyle, | ||
|
||
/** | ||
* Additional styles for text of select box | ||
*/ | ||
inputStyles?: ViewStyle, | ||
|
||
/** | ||
* Additional styles for dropdown scrollview | ||
*/ | ||
dropdownStyles?:ViewStyle, | ||
|
||
/** | ||
* Additional styles for dropdown list item | ||
*/ | ||
dropdownItemStyles?: ViewStyle, | ||
|
||
/** | ||
* Additional styles for list items text | ||
*/ | ||
dropdownTextStyles?: ViewStyle, | ||
|
||
/** | ||
* Maximum height of the dropdown wrapper to occupy | ||
*/ | ||
maxHeight?: number, | ||
|
||
/** | ||
* Data which will be iterated as options of select list | ||
*/ | ||
data: Array<{}>, | ||
|
||
/** | ||
* Pass any JSX to this prop like Text, Image or Icon to show instead of search icon | ||
*/ | ||
searchicon?: JSX.Element, | ||
|
||
/** | ||
* Pass any JSX to this prop like Text, Image or Icon to show instead of chevron icon | ||
*/ | ||
arrowicon?: JSX.Element, | ||
|
||
/** | ||
* set to false if you dont want to use search functionality | ||
*/ | ||
search?: boolean | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters