@rn-components-dropdown/dropdown 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
3
3
|
A lightweight, customizable, and fully typed **Dropdown** and **DropdownController** component for **React Native**.
|
|
4
4
|
Supports **single** & **multiple selection**, custom icons, styling, and easy integration with **React Hook Form**.
|
|
5
5
|
|
|
6
|
+
---
|
|
7
|
+
# Example
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+

|
|
11
|
+
|
|
12
|
+
|
|
6
13
|
---
|
|
7
14
|
|
|
8
15
|
## 📦 Installation
|
|
@@ -18,7 +18,7 @@ const AppDropdownController = (props) => {
|
|
|
18
18
|
return onChange(selectedItem);
|
|
19
19
|
}
|
|
20
20
|
return onChange(selectValue);
|
|
21
|
-
}} labelField={labelField} valueField={valueField} placeholder={placeholder} containerStyle={containerStyle} labelTextStyle={styles.labelText} itemTextStyle={styles.dropdownText} placeholderStyle={styles.itemContainer} selectedTextStyle={styles.selectionText} style={[styles.dropdownContainer, error && styles.errorWrapper]} {...rest}/>
|
|
21
|
+
}} labelField={labelField} valueField={valueField} placeholder={placeholder} selectionType={selectionType} containerStyle={containerStyle} labelTextStyle={styles.labelText} itemTextStyle={styles.dropdownText} placeholderStyle={styles.itemContainer} selectedTextStyle={styles.selectionText} style={[styles.dropdownContainer, error && styles.errorWrapper]} {...rest}/>
|
|
22
22
|
{error && <AppText_1.default style={styles.error}>{error?.message}</AppText_1.default>}
|
|
23
23
|
</react_native_1.View>)}/>);
|
|
24
24
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rn-components-dropdown/dropdown",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"repository": {
|
|
@@ -15,12 +15,14 @@
|
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"react",
|
|
18
|
+
"dropdown",
|
|
18
19
|
"react-native",
|
|
20
|
+
"rn-components",
|
|
19
21
|
"react-components"
|
|
20
22
|
],
|
|
21
|
-
"author": "",
|
|
22
|
-
"license": "
|
|
23
|
-
"description": "",
|
|
23
|
+
"author": "Himmat Suthar",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"description": "Package use for dropdown for single and multi selection with radio and checkbox",
|
|
24
26
|
"devDependencies": {
|
|
25
27
|
"@types/lodash": "^4.17.20",
|
|
26
28
|
"@types/react": "^19.2.2",
|
|
Binary file
|
|
Binary file
|