UNPKG

react-native-modal-select

Version:
53 lines (35 loc) 1.39 kB
# React-Native-Modal-Select _uses [Expo Icons](https://icons.expo.fyi/)_ ### Props * __iconType (string)__ * the family of icon * values include: "material", "entypo", "community", "foundation", "fontawesome5", "fontawesome", "antdesign", "ionicons", "evil", "feather", "octicons", "simple", "zocial" * __iconPadding (int)__ * padding around the icon * __iconName (string)__ * the name of the chosen icon * __iconSize (int)__ * size of the icon * __iconColor (string)__ * __inputWidth (int or percentage)__ * __inputHeight (int or percentage)__ * __selectedValue (int or string)__ * value to be displayed in the input container * __textColor (string)__ * __onSelect (function)__ * callback function * __items (array of objects)__ * objects must contain an __id__, __label__, and __value__ * i.e. [{ id: 0, label: "First Item", value: 1}, { id: 1, label: "Second Item", value: 2}] * __backgroundColor (string)__ * background color of the modal containing the flatlist * __inputBackgroundColor (string)__ * background color of the input * __clearable (boolean)__ * setting to _true_ will place a clickable icon to the far right of the input to clear the value * __labelText (string)__ * label text to display above the input * __labelColor (string)__ * color of the label text * __labelSize (int)__ * font size of the label