@callstack/repack-plugin-expo-modules
v5.2.5
Published
A plugin for @callstack/repack that integrates Expo Modules
Downloads
29,010
Readme
@callstack/repack-plugin-expo-modules is a plugin for @callstack/repack that compliments the integration of Expo Modules into your React Native projects.
About
This plugin helps and compliments the process of enabling Expo Modules in Re.Pack projects by defining necessary globals that are expected by Expo Modules at runtime. However, it is not sufficient on its own for a complete setup. For comprehensive guidance on using Expo Modules with Re.Pack, please refer to our official documentation.
Installation
npm install -D @callstack/repack-plugin-expo-modulesUsage
Plugin
To add the plugin to your Re.Pack configuration, update your rspack.config.js or webpack.config.js as follows:
import { ExpoModulesPlugin } from "@callstack/repack-plugin-expo-modules";
export default (env) => {
// ...
return {
// ...
plugins: [
// ...
new ExpoModulesPlugin(),
],
};
};Check out our website at https://re-pack.dev for more info and documentation or our GitHub: https://github.com/callstack/repack.
Made with ❤️ at Callstack
@callstack/repack is an open source project and will always remain free to use. If you think it's cool, please star it 🌟. Callstack is a group of React and React Native geeks, contact us at [email protected] if you need any help with these or just want to say hi!
Like the project? ⚛️ Join the team who does amazing stuff for clients and drives React Native Open Source! 🔥
