react-native-native-select 1.2.1 → 2.0.0
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
|
@@ -59,7 +59,7 @@ If you need any of the features in the right-hand columns, use one of those libr
|
|
|
59
59
|
|
|
60
60
|
## Requirements
|
|
61
61
|
|
|
62
|
-
* **React Native:** `>= 0.
|
|
62
|
+
* **React Native:** `>= 0.80.0` (declared as a peer dependency, along with `react`). The codegen spec imports `codegenNativeComponent` and the `CodegenTypes` namespace from the `react-native` root, which only re-exports them from 0.80 onward. On 0.71-0.79, use `1.2.1`.
|
|
63
63
|
* **Architecture:** the New Architecture, enabled. `RCT_NEW_ARCH_ENABLED=1` must have been set when you ran `pod install`.
|
|
64
64
|
* **iOS:** 14.0+ for `dropdown` mode, since `UIMenu` and `showsMenuAsPrimaryAction` are gated behind an availability check. The podspec deployment target is 11.0, and `dialog` mode works all the way down.
|
|
65
65
|
* **Android:** `compileSdkVersion` and `targetSdkVersion` default to 31 and `minSdkVersion` to 21, each read through `safeExtGet` so your root `ext` values win.
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-native-select",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
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",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"homepage": "https://github.com/wneel/react-native-native-select#readme",
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": "*",
|
|
49
|
-
"react-native": ">=0.
|
|
49
|
+
"react-native": ">=0.80.0"
|
|
50
50
|
},
|
|
51
51
|
"codegenConfig": {
|
|
52
52
|
"name": "RTNSelectSpec",
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import codegenNativeComponent from 'react-native
|
|
1
|
+
import { codegenNativeComponent } from 'react-native';
|
|
2
2
|
|
|
3
|
-
import type { ColorValue, HostComponent } from 'react-native';
|
|
4
|
-
import type { ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';
|
|
5
|
-
import type { Int32, DirectEventHandler, WithDefault } from 'react-native/Libraries/Types/CodegenTypes';
|
|
3
|
+
import type { CodegenTypes, ColorValue, HostComponent, ViewProps } from 'react-native';
|
|
6
4
|
|
|
7
5
|
type OnChangeEvent = Readonly<{
|
|
8
6
|
value: string;
|
|
9
|
-
index: Int32;
|
|
7
|
+
index: CodegenTypes.Int32;
|
|
10
8
|
}>;
|
|
11
9
|
|
|
12
10
|
export interface NativeProps extends ViewProps {
|
|
13
11
|
options: ReadonlyArray<string>;
|
|
14
|
-
selectedIndex?: Int32;
|
|
15
|
-
mode?: WithDefault<'dialog' | 'dropdown', 'dialog'>; // iOS only
|
|
12
|
+
selectedIndex?: CodegenTypes.Int32;
|
|
13
|
+
mode?: CodegenTypes.WithDefault<'dialog' | 'dropdown', 'dialog'>; // iOS only
|
|
16
14
|
textColor?: ColorValue; // iOS only
|
|
17
|
-
onValueChange?: DirectEventHandler<OnChangeEvent>;
|
|
15
|
+
onValueChange?: CodegenTypes.DirectEventHandler<OnChangeEvent>;
|
|
18
16
|
}
|
|
19
17
|
|
|
20
18
|
export default codegenNativeComponent<NativeProps>(
|