Comments (5)
Hi @Nazehs,
from your description I see that you are using Module Federation. In this case, since react-native-gesture-handler
contains a native module and host-app needs to provide all packages with native modules. The library needs to declared as shared dependency in both webpack.config
files (host and mini-app(s)). In your host app add the following to MF configuration:
new Repack.plugins.ModuleFederationPlugin({
name: '<your_hostapp_name>',
shared: {
"react-native-gesture-handler": {
singleton: true,
eager: true
}
},
}),
and in your mini-app it should be declared with eager
set to false:
new Repack.plugins.ModuleFederationPlugin({
name: '<your_hostapp_name>',
shared: {
"react-native-gesture-handler": {
singleton: true,
eager: false
}
},
}),
from repack.
@Nazehs did that help with resolving your issue?
from repack.
@jbroma thank you but after trying on my own I did change the implementation that was using the package to use a different implementation. I would try it and see if that works.
from repack.
@Nazehs any chance you could check whether this resolves it? It would be good to close it with some sensible resolution for others to find in case they run into it as well. If not, I'll just close it as it is.
from repack.
@jbroma Thank you I have tried this again and it does work.
from repack.
Related Issues (20)
- Unhandled error in Webpack Compiler when doing `rpm run ios` HOT 2
- Cannot Resole React Hook Form correctly HOT 7
- repack monorepo deployment help
- Android is crashing when "onMessage" props is accessed in "react-native-webview" library HOT 1
- [RFC] sync API HOT 14
- Improve types for `prefetchScript` and `loadScript` HOT 6
- Is it possible to load a remote module before it is requested by the user?
- callstack_repack-Swift.h file not found HOT 18
- Repack app fails with "could not find react-redux context value" for the latest versions of react-redux and @reduxjs/toolkit HOT 3
- Property 'HMRClient' doesn't exist HOT 4
- Challenge Integrating Repack in React Native Mono Repo: App1 Loads Successfully, App2 Fails to Load from Server Bundles HOT 3
- Extract runtime into separate package in monorepo & publish it separately HOT 4
- Migrate ObjC code parts to Swift HOT 2
- Repack Navigation From Mini App To Main APP HOT 3
- Adopt the new federation runtime HOT 5
- A clear working example of how code signing works with repack HOT 11
- TypeError: Cannot read property 'call' of undefined HOT 6
- Can't use SafeAreaView
- how to handle unavailability of modules in the host application HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repack.