@tbd54566975/web5-react-native-metro-config
v2.0.0
Published
Metro config to enable web5 to work on react native
Downloads
43
Readme
Background
This zero dependency package provides a metro config to enable web5 to work on react native
Usage
Install package:
yarn add @tbd54566975/web5-react-native-metro-config
Add the package to your metro config.
Expo:
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require('expo/metro-config');
const { mergeConfig } = require('metro-config');
/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);
const web5Config = require('@tbd54566975/web5-react-native-metro-config');
module.exports = mergeConfig(config, web5Config);
React Native:
const { getDefaultConfig, mergeConfig } = require('metro-config');
const config = getDefaultConfig(__dirname);
const web5Config = require('@tbd54566975/web5-react-native-metro-config');
module.exports = mergeConfig(config, web5Config);