Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis. Learn more
Socket
Log inDemoInstall

@bacons/expo-metro-runtime

Package Overview
Dependencies
2
Maintainers
1
Versions
10
Issues
File Explorer

Advanced tools

@bacons/expo-metro-runtime

Tools for making experimental Metro bundler features work

    2.0.1latest
    GitHub

Version published
Maintainers
1
Weekly downloads
375
decreased by-35.57%

Weekly downloads

Readme

Source

@bacons/expo-metro-runtime

Temporary utility package for using Metro on web with lazy loading and Fast Refresh.

Add the package to your npm dependencies

yarn add @bacons/expo-metro-runtime

Usage

To add web support to the runtime:

import "@bacons/expo-metro-runtime"; // Rest of your app...

To enable React Suspense in React Native for all platforms (dev only):

metro.config.js

// Learn more https://docs.expo.io/guides/customizing-metro const { getDefaultConfig } = require("expo/metro-config"); const path = require("path"); const config = getDefaultConfig(__dirname); config.transformer = { experimentalImportBundleSupport: true, asyncRequireModulePath: path.resolve( "@bacons/expo-metro-runtime/asyncRequire" ), }; module.exports = config;

Keywords

FAQs

Last updated on 25 Sep 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
support@socket.devSocket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc