-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android support? #3
Comments
Can i get a working example of how to use this library? |
Hey guys! Sorry for the delay. Work has been quite hectic. I'll look into this. I'll get back to you guys soon. <ArcGISMapView ref={mapView => this.mapView = mapView} style={{width: 360, height: 500}}
initialMapCenter={[{latitude: 34.055561, longitude: -117.182602}]}
recenterIfGraphicTapped={true}
rotationEnabled={false}
onLayerPress={ this.onLayerPress }
onRoutingStatusUpdate={this.onRoutingStatusUpdate}
mapBasemap={ { type: 'normal' } }
onSingleTap={this.onSingleTap}
/> Don't forget to set a license key and an initial region. That could be a reason you're getting a grey screen. |
I have set the initial region as well. |
How do i use onSingleTap? Can i get the current map point on tap? |
Anyone figure this out yet? iOS works great, but getting the same gray screen on Android. I have an initial region and license key set. EDIT: Figured it out, my Android emulator did not have network access for some reason |
@davidgalindo I tried your github react native arcgis code using the below url. But end up getting this error. Can you look into this? |
If someone successfully implemented ArcGIS map functionality using react-native, can you please share the code. |
@Anujkumar12 below is the link for working example. you can download |
@rajashekar545 Thanks rajashekar for your help. I tried what you have mentioned above but still getting the same error. |
Hi @Anujkumar12 I experience a similar issue, I believe this is related to the device's architecture. The Esri Android SDK just recently started supporting 64-bit architectures. In the above error message, it appears your device has arm64-v8a. Try upgrading the SDK to at least 100.5.0. See the references below for further information. https://developer.android.com/ndk/guides/abis |
onSingleTap callback doesn't work for me. It just returns a synthetic event object, not the object written in docs. Does anybody know about this? |
I'm getting this error when trying to start the app:
Someone knows how to fix it? |
I fixed that error by upgrading to at least 100.5.0. I had to change the maven url to I ended up going with the most recent version in my dependencies: |
Works great in RN ver. 0.64.5. It would be useful if a link is placed on the readme page. |
@Anujkumar12 Did you find a solution for this? I am facing the same error |
Hi,
I want to implement esri maps in my react native project, so just wanted to know if this will support android as well for the basic functionality?
The text was updated successfully, but these errors were encountered: