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
With the current declaration,
trigger
can be imported from the destructured importHowever, the function does not exist in the source code. This PR fixes this issue and only return
trigger
when used with the classReactNativeHapticFeedback.trigger(...)
declaration