react-native-native-select 1.1.0 → 1.1.1
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/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Wayan NEEL
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# react-native-native-select
|
|
2
2
|
|
|
3
|
+
<p>
|
|
4
|
+
<a href="https://github.com/wneel/react-native-native-select/blob/HEAD/LICENSE">
|
|
5
|
+
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="React Native Wheel Picker is released under the MIT license." />
|
|
6
|
+
</a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/wneel/react-native-native-select">
|
|
8
|
+
<img src="https://img.shields.io/npm/v/react-native-native-select?color=brightgreen&label=npm%20package" alt="Current npm package version." />
|
|
9
|
+
</a>
|
|
10
|
+
<a href="https://www.npmjs.com/package/wneel/react-native-native-select">
|
|
11
|
+
<img src="https://img.shields.io/npm/dm/react-native-native-select" alt="Number of downloads per week." />
|
|
12
|
+
</a>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
|
|
3
16
|
A strictly native, performant Select component for React Native built exclusively for the **New Architecture**.
|
|
4
17
|
|
|
5
18
|
It leverages actual OS primitives: `UIMenu` (iOS 14+), `UIPickerView` (iOS Wheel), and `AppCompatSpinner` (Android), offering a truly native look and feel that JS-based libraries cannot match.
|
|
@@ -8,7 +21,7 @@ It leverages actual OS primitives: `UIMenu` (iOS 14+), `UIPickerView` (iOS Wheel
|
|
|
8
21
|
|
|
9
22
|
| iOS (Dropdown Mode) | iOS (Dialog/Wheel Mode) | Android |
|
|
10
23
|
|:---:|:---:|:---:|
|
|
11
|
-
|
|
|
24
|
+
| <img src="https://github.com/user-attachments/assets/8a65c76b-f0a8-4f89-88d3-49000abe354d" height="300" /> | <img src="https://github.com/user-attachments/assets/71d98f6c-984a-49e8-bc98-abbfb86de535" height="300" /> | <img src="https://github.com/user-attachments/assets/5936637a-e63a-445c-9c9f-3a05940b6f9e" height="300" /> |
|
|
12
25
|
| *Native UIMenu (iOS 14+)* | *Classic UIPickerView* | *Native AppCompatSpinner* |
|
|
13
26
|
|
|
14
27
|
## Why this library?
|
|
@@ -79,5 +79,12 @@ public class SelectViewManager extends SimpleViewManager<SelectView>
|
|
|
79
79
|
@ReactProp(name = "mode")
|
|
80
80
|
public void setMode(SelectView view, @Nullable String value) {}
|
|
81
81
|
|
|
82
|
+
@Override
|
|
83
|
+
@ReactProp(name = "textColor", customType = "Color")
|
|
84
|
+
public void setTextColor(SelectView view, @Nullable Integer value) {
|
|
85
|
+
// iOS-only feature: we don't do anything on Android,
|
|
86
|
+
// but the method must exist to satisfy the interface generated by TypeScript.
|
|
87
|
+
}
|
|
88
|
+
|
|
82
89
|
public void setOnValueChange(SelectView view, @Nullable Object value) {}
|
|
83
90
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-native-select",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "react-native-native-select is a strictly native, performant Select component for React Native built exclusively for the New Architecture.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"react-native": "src/index.ts",
|