0
我將爲我的反應原生iOS應用程序創建脫機綁定。我使用下面的命令它,創建offlne綁定反應原生失敗顯示圖像
react-native bundle --minify --dev false --assets-dest ./ios --entry-file index.ios.js --platform ios --bundle-output ios/main.jsbundle
它創建main.bundle但在設備上的屏幕沒有一個圖像顯示的輸出。
我把img
文件夾裏的所有圖像保存在項目的根目錄下。我的文件夾結構, myProjectFolder的
|_android (Project)
img (all image for application)
index.android.js
index.ios.js
ios (Project)
mycustomView.js
node_modules (folder)
package.json
此外,在構建方案我改變調試釋放模式。我對圖像文件夾的名稱應該放在什麼位置感到困惑。
感謝
是我想你的方式,但圖像不顯示。但我試圖http://stackoverflow.com/questions/30139736/react-native-cant-load-image這個解決方案,它爲我工作。所以我想知道你和他的解決方案有什麼不同? 。謝謝 – Tirth