You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
704 B

/**
* This is an implementation of a metro resolveRequest option which will remap react-native imports
* to different npm packages based on the platform requested. This allows a single metro instance/config
* to produce bundles for multiple out of tree platforms at a time.
*
* @param platformImplementations
* A map of platform to npm package that implements that platform
*
* Ex:
* {
* windows: 'react-native-windows'
* macos: 'react-native-macos'
* }
*/
export declare function reactNativePlatformResolver(platformImplementations: {
[platform: string]: string;
}): (context: any, moduleName: string, platform: string) => any;
//# sourceMappingURL=metroPlatformResolver.d.ts.map