@react-native-segmented-control/segmented-control 2.4.0 → 2.4.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/index.d.ts +2 -1
  3. package/package.json +13 -12
package/README.md CHANGED
@@ -19,7 +19,7 @@ For Android and Web, it has a js implementation that mocks iOS 13 style of UISeg
19
19
  | v2.2.0 | >= 0.62 |
20
20
  | <= v2.2.0 | >= 0.57 |
21
21
 
22
- This module is NOT supported for expo.
22
+ This module is NOT supported in the Expo Go app on iOS, because it requires custom native code. You need to use a custom development client or eject into bare workflow in order to use this module on iOS.
23
23
 
24
24
  ## Getting started
25
25
 
package/index.d.ts CHANGED
@@ -6,11 +6,12 @@ import {
6
6
  ViewProps,
7
7
  NativeSyntheticEvent,
8
8
  NativeMethods,
9
- Constructor,
10
9
  TargetedEvent,
11
10
  ViewStyle,
12
11
  } from 'react-native';
13
12
 
13
+ type Constructor<T> = new (...args: any[]) => T;
14
+
14
15
  export interface NativeSegmentedControlIOSChangeEvent extends TargetedEvent {
15
16
  value: string;
16
17
  selectedSegmentIndex: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-native-segmented-control/segmented-control",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "description": "React Native SegmentedControlIOS library",
5
5
  "main": "js/index.js",
6
6
  "types": "index.d.ts",
@@ -28,28 +28,29 @@
28
28
  "devDependencies": {
29
29
  "@babel/core": "^7.10.2",
30
30
  "@babel/runtime": "^7.10.2",
31
- "@expo/webpack-config": "^0.12.22",
32
- "@react-native-community/eslint-config": "^2.0.0",
33
- "@semantic-release/git": "^8.0.0",
31
+ "@expo/webpack-config": "^0.17.2",
32
+ "@react-native-community/eslint-config": "^3.0.0",
33
+ "@semantic-release/git": "^10.0.1",
34
34
  "@types/react": "^17.0.0",
35
35
  "@types/react-native": "^0.64.4",
36
36
  "babel-eslint": "^10.1.0",
37
- "babel-jest": "^26.0.1",
38
- "babel-preset-expo": "^8.2.1",
37
+ "babel-jest": "^29.0.3",
38
+ "babel-preset-expo": "^9.2.0",
39
39
  "eslint": "7",
40
- "eslint-plugin-prettier": "^3.1.2",
41
- "expo": "^38.0.10",
40
+ "eslint-plugin-prettier": "^4.2.1",
41
+ "expo": "^46.0.16",
42
42
  "flow-bin": "^0.142.0",
43
- "husky": "^5.1.1",
44
- "jest": "^26.0.1",
45
- "metro-react-native-babel-preset": "0.65.1",
43
+ "husky": "^8.0.1",
44
+ "jest": "^29.2.1",
45
+ "metro-react-native-babel-preset": "0.73.3",
46
46
  "react": "16.13.1",
47
47
  "react-dom": "16.13.1",
48
48
  "react-native": "0.63.4",
49
+ "react-native-test-app": "1.4.6",
49
50
  "react-native-web": "^0.14.10",
50
51
  "react-test-renderer": "16.13.1",
51
52
  "rimraf": "^3.0.2",
52
- "semantic-release": "^17.0.4",
53
+ "semantic-release": "^19.0.5",
53
54
  "typescript": "^4.1.5"
54
55
  },
55
56
  "resolutions": {