react-native-directional-toggle 0.1.0 → 0.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/README.en.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  This is a React Native / Expo component library.
4
4
 
5
+ Note: expo development can only run normally with `expo run` after prebuild, not supported by `expo go`.
6
+
5
7
  For Chinese version, please click: [中文](README.md).
6
8
 
7
9
  ## Installation
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  这是一个 React Native / Expo 组件库。
4
4
 
5
+ 注意:expo开发时,只能在prebuild后正常用`expo run`的方式运行,不支持expo go。
6
+
5
7
  For English version, please click: [English](README.en.md)。
6
8
 
7
9
  ## 安装
@@ -23,7 +25,6 @@ pnpm add react-native-gesture-handler react-native-reanimated react-native-workl
23
25
  - react-native-reanimated
24
26
  - react-native-worklets
25
27
 
26
- 注意:只能在prebuild后正常用`expo run`的方式运行,不支持expo go。
27
28
 
28
29
  ## 使用
29
30
 
@@ -11,13 +11,13 @@ export function AnimatedSwitch({
11
11
  options,
12
12
  value,
13
13
  onChange,
14
- height = 40,
14
+ height = 36,
15
15
  vertical = false,
16
16
  colors = {
17
17
  activeText: "#373737",
18
18
  inactiveText: "#dededeff",
19
19
  bgFront: "#d4d4d4",
20
- bgBack: "#798393ff"
20
+ bgBack: "#9a9a9a"
21
21
  },
22
22
  animationConfig = {
23
23
  duration: 100,
@@ -173,7 +173,7 @@ const styles = StyleSheet.create({
173
173
  width: 0,
174
174
  height: 1
175
175
  },
176
- shadowRadius: 2,
176
+ shadowRadius: 1,
177
177
  elevation: 2
178
178
  },
179
179
  item: {
@@ -183,7 +183,7 @@ const styles = StyleSheet.create({
183
183
  zIndex: 1 // 确保文字在滑块上方
184
184
  },
185
185
  label: {
186
- fontSize: 14,
186
+ fontSize: 13,
187
187
  fontWeight: "600"
188
188
  }
189
189
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-directional-toggle",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Multi-element toggle component for React Native and Expo with support for vertical and horizontal layouts and animations.",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -41,13 +41,13 @@ export function AnimatedSwitch({
41
41
  options,
42
42
  value,
43
43
  onChange,
44
- height = 40,
44
+ height = 36,
45
45
  vertical = false,
46
46
  colors = {
47
47
  activeText: "#373737",
48
48
  inactiveText: "#dededeff",
49
49
  bgFront: "#d4d4d4",
50
- bgBack: "#798393ff",
50
+ bgBack: "#9a9a9a",
51
51
  },
52
52
  animationConfig = {
53
53
  duration: 100,
@@ -222,7 +222,7 @@ const styles = StyleSheet.create({
222
222
  shadowColor: '#000',
223
223
  shadowOpacity: 0.3,
224
224
  shadowOffset: { width: 0, height: 1 },
225
- shadowRadius: 2,
225
+ shadowRadius: 1,
226
226
  elevation: 2,
227
227
  },
228
228
  item: {
@@ -232,7 +232,7 @@ const styles = StyleSheet.create({
232
232
  zIndex: 1, // 确保文字在滑块上方
233
233
  },
234
234
  label: {
235
- fontSize: 14,
235
+ fontSize: 13,
236
236
  fontWeight: "600",
237
237
  },
238
238
  });