如題,打算通過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延遲實在是有點高)
react native 如何加載項目目錄下的html文件
哈士奇WWW
2018-10-16 09:38:42