4 Star 1 Fork 0

UnPourTous/react-native-webview

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
react-native.config.js 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
const project = (() => {
const fs = require('fs');
const path = require('path');
try {
const {
androidManifestPath,
iosProjectPath,
windowsProjectPath,
} = require('react-native-test-app');
return {
android: {
sourceDir: path.join('example', 'android'),
manifestPath: androidManifestPath(
path.join(__dirname, 'example', 'android'),
),
},
ios: {
project: iosProjectPath('example/ios'),
},
windows: fs.existsSync('example/windows/WebviewExample.sln') && {
sourceDir: path.join('example', 'windows'),
solutionFile: 'WebviewExample.sln',
project: windowsProjectPath(path.join(__dirname, 'example', 'windows')),
},
};
} catch (_) {
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),
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/UnPourTous/react-native-webview.git
git@gitee.com:UnPourTous/react-native-webview.git
UnPourTous
react-native-webview
react-native-webview
master

搜索帮助