react-native ios webview文件uri

use*_*865 5 javascript webview ios react-native

如何在react-native webview中打开带有javascript引用的本地html文件?

我将文件“ test.html”添加到根目录中,然后引用为

<WebView source={{uri:"file:///test.html"}}
        style={styles.webview} />
Run Code Online (Sandbox Code Playgroud)

但它会产生以下错误:

Domain:NSUrlErrorDomain 
Error: -1100
Description: the requested URL was not found on this server
Run Code Online (Sandbox Code Playgroud)

如何在IOS的本机Webview中使用Javascript包含静态html文件?