@minkyumdev/react-native-switch 1.0.3 → 1.0.4

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 (2) hide show
  1. package/README.md +13 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -48,15 +48,23 @@ This library requires the following peer dependencies:
48
48
  - `react` (>=16.8.0)
49
49
  - `react-native` (>=0.60.0)
50
50
  - `react-native-reanimated` (>=2.0.0)
51
- - `@mhpdev/react-native-haptics` (optional, for haptic feedback)
52
51
 
53
- Make sure to install these dependencies in your project:
52
+ #### Haptic Feedback (Optional)
54
53
 
54
+ For haptic feedback support, install one of the following depending on your environment:
55
+
56
+ **Expo users:**
57
+ ```bash
58
+ npx expo install expo-haptics
59
+ ```
60
+
61
+ **React Native CLI users:**
55
62
  ```bash
56
- npm install react-native-reanimated
57
63
  npm install @mhpdev/react-native-haptics
58
64
  ```
59
65
 
66
+ > Note: If no haptics library is installed, the switch will work normally without haptic feedback.
67
+
60
68
  ### iOS Setup
61
69
 
62
70
  For iOS, you need to install pods:
@@ -249,7 +257,8 @@ MIT
249
257
  Looking for other React Native components? Check out:
250
258
 
251
259
  - [react-native-reanimated](https://github.com/software-mansion/react-native-reanimated) - Animation library
252
- - [@mhpdev/react-native-haptics](https://github.com/mhevery/react-native-haptics) - Haptic feedback
260
+ - [expo-haptics](https://docs.expo.dev/versions/latest/sdk/haptics/) - Haptic feedback (Expo)
261
+ - [@mhpdev/react-native-haptics](https://github.com/mhevery/react-native-haptics) - Haptic feedback (React Native CLI)
253
262
 
254
263
  ## Contributing
255
264
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minkyumdev/react-native-switch",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A highly customizable, animated switch/toggle component for React Native with smooth animations, haptic feedback, and TypeScript support. Built with react-native-reanimated for optimal performance.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",