INNER CODE UNIT · JavaScript

withHapticFeedback

mkuczera/react-native-haptic-feedback · app.plugin.js:14

function withHapticFeedback(config) {
  // No native modifications required.
  return config;
}

try {
  const { createRunOncePlugin } = require("@expo/config-plugins");
  module.exports = createRunOncePlugin(
    withHapticFeedback,
    pkg.name,
    pkg.version,
  );
} catch {
  // @expo/config-plugins not installed (non-Expo project).
  module.exports = withHapticFeedback;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…