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)
- App Launch Failure After Upgrading to React Native 0.72.15
- The cliOptions.arguments.bundle.dev might be the string 'false' HOT 1
- Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (1:0)
- unhandled js exception can not create property runCommand on string LottieAnimationView
- Unhandled js exception [Reanimated] HOT 6
- App Launch Failure After Upgrading to React Native 0.72.15 HOT 4
- apk release with warning Disconnected from the dev Server HOT 1
- Repack not working with latest react native version 0.75.2 HOT 1
- error: unknown option '--reset-cache' HOT 4
- White Screen when loading the application's initial stack from a remote bundle HOT 3
- Tried to register two views with the same name RCTText HOT 1
- how to handle unavailability of micro App in the host application HOT 4
- Error [ERR_UNSUPPORTED_ESM_URL_SCHEME] HOT 1
- How to access host app's variable/functions within a miniapp ? HOT 2
- Catalogue server being called repeatedly for each micro app- in remote bundled builds. HOT 4
- Compiling JS failed: 7:1:invalid expression (possible JSX: pass -parse-jsx to parse) HOT 4
- Flatlist TypeError: Cannot read property 'getItem' of undefined HOT 1
- The query inside ScriptLocator has been encoded twice HOT 4
- Is there a debugging method?
- Unable to load mini app with Redux store into Host app HOT 1
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.