This zero dependency package provides a metro config to enable web5 to work on react native
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);