Hellow, I'm using react-native to create a User Interface for my application. I'm using Genymotion for testing my code on virtual Android. I wanna use Openlayers javascript library in my web map application. I followed these steps:
npm install openlayers
- I added
import ol from 'openlayers';
to "index.android.js" then when i test my code with Genymotion I get an error. I usedimport {ol} from 'openlayers'
; insted ofimport ol from 'openlayers';
but it doesn't worked.
at _transform.then.catch.error (C:\Users\my_user\some_directory\PropertyFinder\node_modules\metro-bundler\build\JSTransformer\index.js:138:28)
– Clannish