Skip to content

Removing the need of react-native-haptic-feedback really helps to make it usable for web to fix this issue: Metro error: Cannot read properties of undefined (reading 'getEnforcing') #30

@elsonsutrisno

Description

@elsonsutrisno

I removed the
import ReactNativeHapticFeedback from "react-native-haptic-feedback";
const runFeedback = () => { if (hapticFeedback) { ReactNativeHapticFeedback.trigger(hapticFeedback); } };
if (next !== null) { runOnJS(runFeedback)(); }
from the "DnDProvider".
The package seems to work fine, but I'm not entirely sure if it breaks the entire package. From my testing, it function on the web without encountering the issue: Metro error: Cannot read properties of undefined (reading 'getEnforcing');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions