@quidone/react-native-wheel-picker-feedback
Version:
It provides native sound and haptic feedback from the wheel picker
61 lines (44 loc) • 1.97 kB
Markdown
[]: https://github.com/rozhkovs
[]: https://github.com/quidone/react-native-wheel-picker
<p>
<a href="https://github.com/quidone/react-native-wheel-picker-feedback/blob/HEAD/LICENSE">
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="React Native Wheel Picker Feedback is released under the MIT license." />
</a>
<a href="https://www.npmjs.com/package/@quidone/react-native-wheel-picker-feedback">
<img src="https://img.shields.io/npm/v/@quidone/react-native-wheel-picker-feedback?color=brightgreen&label=npm%20package" alt="Current npm package version." />
</a>
</p>
It provides native sound and haptic feedback from the wheel picker. For platform other than iOS, nothing will happen.
This may be used with [@quidone/react-native-wheel-picker][Q-WHEEl-PICKER]
```sh
yarn add @quidone/react-native-wheel-picker-feedback
```
```ts
import WheelPickerFeedback from '@quidone/react-native-wheel-picker-feedback';
WheelPickerFeedback.triggerImpact();
WheelPickerFeedback.triggerSound();
WheelPickerFeedback.triggerSoundAndImpact()
```
```shell
git clone git@github.com:quidone/react-native-wheel-picker-feedback.git
cd react-native-wheel-picker-feedback
yarn install
cd example && bundle exec pod install && yarn ios
```
[][AUTHOR]
Do you like it and find it helpful? You can help this project in the following way:
- ⭐ Put the star.
- 💡 Suggest your ideas.
- 😉 Open a founded issue.
See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.
Quidone React Native Wheel Picker Feedback is MIT licensed, as found in the [LICENSE](LICENSE) file.
---
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)