如题,打算通过webView加载html:var url="https://www.某网址/VisualOBJ.html"; return ( <WebView
style={styles.webView}
source={{uri:url}}
javaScriptEnabled={true}
domStorageEnabled={true}
decelerationRate="normal"
startInLoadingState={true}
/>
);但实际上,我打算把html文件放在项目目录下,然后加载,因为html本身是静态的(包含一些js、css、打算一同放在本地目录下)用localhost的方式是不行的,这样在手机上不行想知道怎么样可以直接加载项目目录下的html文件? (网络io延迟实在是有点高)
添加回答
举报
0/150
提交
取消