Skip to main content
Version: 3x

Variable: SHARED_REACT_NATIVE

Federated.SHARED_REACT_NATIVE

Const SHARED_REACT_NATIVE: Object

Predefined options for shared react-native dependency.

example Basic example.

import * as React from 'repack';

new Repack.plugins.ModuleFederationPlugin({
// ...
shared: {
'react-native': Repack.Federated.SHARED_REACT,
}
});

example Example with spread and additional options.

import * as React from 'repack';

new Repack.plugins.ModuleFederationPlugin({
// ...
shared: {
'react-native': {
...Repack.Federated.SHARED_REACT_NATIVE,
// additional options
}
}
});

Type declaration

NameType
eagerboolean
singletonboolean

Defined in

packages/repack/src/webpack/federated.ts:73