{"repo":"oblador/react-native-nitro-haptics","free":true,"listed":false,"github":"https://github.com/oblador/react-native-nitro-haptics","clone":"git clone https://github.com/oblador/react-native-nitro-haptics.git","description":"📳 Low Latency Haptic Feedback with Worklet Support for React Native","language":"Kotlin","stars":225,"topics":["haptic-feedback","haptics","nitro","nitro-module","react-native","reanimated","worklet"],"license":"MIT","category":"mobile-apps","readme_excerpt":"Nitro Haptics Low Latency Haptic Feedback with Worklet Support for React Native --- Features - Low latency for timing interaction and feedback perfectly, thanks to extremely fast Nitro Modules - Worklet support to ensure instant feedback even if JS thread is blocked - Built for New Architecture from the start - Drop-in replacement for expo-haptics for ease of adoption Installation You need to install both Nitro Modules core package and Nitro Haptics: Usage See Apple Human Interface Guidelines for best practices and references. Reanimated Worklets Assuming your app has been correctly configured with Reanimated, Nitro Haptics can be called directly from the UI thread by using Nitro Modules Boxing: API Haptics.impact(style: 'light' 'medium' 'heavy' 'soft' 'rigid') Impact haptics provide a physical metaphor you can use to complement a visual experience. For example, people might feel a tap when a view snaps into place or a thud when two heavy objects collide. style argument maps to UIImpactFeedbackGenerator.FeedbackStyle , see HIG for visualization. Haptics.notification(type: 'success' 'warning' 'error') Notification haptics provide feedback about the outcome of a task or action, such as depositing a check or unlocking a vehicle. type argument maps to UINotificationFeedbackGenerator.FeedbackType , see HIG for visualization. Haptics.selection() Selection haptics provide feedback while the values of a UI element are changing, see HIG for visualization. Haptics.performAndroidHaptics","default_branch":null,"files":null,"tree":[],"storefront":"/r/oblador","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/oblador/react-native-nitro-haptics/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}