Hellow,我正在使用react-native爲我的應用程序創建一個用戶界面。我正在使用Genymotion在虛擬Android上測試我的代碼。我想在我的網絡地圖應用程序中使用Openlayers JavaScript庫。我按照這些步驟:從反應原生態的開放層進口OL
npm install openlayers
- 我加
import ol from 'openlayers';
爲「index.android.js」 然後當我測試與Genymotion代碼我得到一個錯誤。 我用import {ol} from 'openlayers'
;插入import ol from 'openlayers';
但它不起作用。
終端說什麼? – Avdept
我正在使用Windows 8.1。命令提示符說:'at _transform.then.catch.error(C:\ Users \ my_user \ some_directory \ PropertyFinder \ node_modules \ metro-bundler \ build \ JSTransformer \ index.js:138:28)' –
是否可以添加openlayers庫反應 - 本機? –