Files
projet_gestion_commande/frontend-admin/node_modules/react-native-webview/react-native.config.js
T
2026-02-07 22:33:02 +01:00

45 lines
1022 B
JavaScript

const project = (() => {
const path = require('path');
try {
const { configureProjects } = require('react-native-test-app');
return configureProjects({
android: {
sourceDir: path.join('example', 'android'),
},
ios: {
sourceDir: 'example/ios',
},
windows: {
sourceDir: path.join('example', 'windows'),
solutionFile: path.join('example', 'windows', 'WebviewExample.sln'),
},
});
} catch (e) {
return undefined;
}
})();
module.exports = {
dependencies: {
// Help rn-cli find and autolink this library
'react-native-webview': {
root: __dirname,
},
},
dependency: {
platforms: {
windows: {
sourceDir: 'windows',
solutionFile: 'ReactNativeWebView.sln',
projects: [
{
projectFile: 'ReactNativeWebView/ReactNativeWebView.vcxproj',
directDependency: true,
},
],
},
},
},
...(project ? { project } : undefined),
};