mkuczera / react-native-haptic-feedback

React-Native Haptic Feedback for iOS with Android similar behaviour.
MIT License
879 stars 109 forks source link

fix: class declaration #78

Closed jeremybarbet closed 2 years ago

jeremybarbet commented 2 years ago

With the current declaration, trigger can be imported from the destructured import

import { trigger } from 'react-native-haptic-feedback';

However, the function does not exist in the source code. This PR fixes this issue and only return trigger when used with the class ReactNativeHapticFeedback.trigger(...) declaration