Builds React Native and Expo apps with native ArcGIS Maps SDK for 2D maps, 3D scenes, layers, geocoding, routing, offline maps, and real-time streams. Use when integrating ArcGIS/Esri maps into Expo or React Native apps.
Ships in expo-arcgis. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
expo-arcgis renders the native ArcGIS Maps SDK (300.1) from React. The API mirrors the SDK's
object model, one component per SDK class: a <Map> model shown by a <MapView>, a <Scene>
shown by a <SceneView>. Layers and graphics are children. Runtime operations go through refs.
Service calls that need no view are plain namespaces.
npx expo run:ios,
npx expo run:android or an EAS build). It never runs in Expo Go, and the views throw on web.npx expo install expo-arcgis
Add ['expo-arcgis', { apiKey: process.env.ARCGIS_API_KEY }] to plugins in the app config,
then run npx expo prebuild --clean. The plugin raises the iOS deployment target, Android
minSdk/compileSdk and adds Esri's Maven repository. Without it, the native build fails.apiKey
(written into the native project at prebuild), or set it at runtime with
<MapSettings config={{ apiKey: process.env.EXPO_PUBLIC_ARCGIS_API_KEY }}> once near the app
root, or with ExpoArcgis.setApiKey(key).Setup details, plugin options and fixes for build and runtime errors are in references/setup.md.
<MapSettings config={{ apiKey }}> global settings (esriConfig): key, license
<Map basemap initialViewpoint> the ArcGISMap model
<FeatureLayer url /> <TileLayer url /> ... operational layers: children of the model
<GroupLayer> ...layers... </GroupLayer> a layer that hosts layers
<UtilityNetwork serviceGeodatabaseUrl /> also attaches to the map
<MapView style={{ flex: 1 }} onTap ref> the only native view
<GraphicsOverlay> <Graphic /> </GraphicsOverlay>
<GeometryEditor /> <ImageOverlay /> <Callout />
...your own React Native views, expo-arcgis-toolkit components
</MapView>
</Map>
</MapSettings>
3D is the same shape with <Scene> and <SceneView> (a global scene) or <LocalSceneView> (a
local scene). <AnalysisOverlay> (with <Viewshed>, <LineOfSight>, <DistanceMeasurement>)
goes inside a <SceneView>.
| Component | Must be inside |
|---|---|
any *Layer, <GroupLayer>, <UtilityNetwork> | <Map> or <Scene> (or a <GroupLayer>) |
<MapView> | <Map>, or pass it a map |
<SceneView>, <LocalSceneView> | <Scene> |
<GraphicsOverlay>, <Callout> | the view: <MapView> or <SceneView> |
<GeometryEditor>, <ImageOverlay> | <MapView> (no effect in a scene view) |
<AnalysisOverlay> | <SceneView> (no effect in a map view) |
<Graphic> | <GraphicsOverlay> |
<Viewshed>, <LineOfSight>, <DistanceMeasurement> | <AnalysisOverlay> |
A misplaced component throws [expo-arcgis] <X> must be inside .... The most common slip is an
overlay placed next to the view inside <Map>: overlays belong to the view, so put them between
<MapView> and </MapView>.
import { FeatureLayer, Graphic, GraphicsOverlay, Map, MapView, type MapViewHandle } from 'expo-arcgis';
import { useRef } from 'react';
const CITIES = 'https://sampleserver6.arcgisonline.com/arcgis/rest/services/SampleWorldCities/MapServer/0';
export function CitiesMap() {
const view = useRef<MapViewHandle>(null);
return (
<Map basemap="arcGISTopographic" initialViewpoint={{ latitude: 34.05, longitude: -118.24, scale: 500_000 }}>
<FeatureLayer url={CITIES} />
<MapView
ref={view}
style={{ flex: 1 }}
onMapLoadError={({ nativeEvent }) => console.warn(nativeEvent.message)}
onTap={async ({ nativeEvent }) => {
const results = await view.current?.identify(nativeEvent.screenPoint, { tolerance: 12 });
console.log(results?.[0]?.features[0]?.attributes);
}}
>
<GraphicsOverlay>
<Graphic
geometry={{ type: 'point', x: -118.24, y: 34.05 }}
symbol={{ type: 'simple-marker', color: '#e63946', size: 12 }}
/>
</GraphicsOverlay>
</MapView>
</Map>
);
}
import { Scene, SceneLayer, SceneView } from 'expo-arcgis';
const BUILDINGS =
'https://tiles.arcgis.com/tiles/z2tnIkrLQ2BRzr6P/arcgis/rest/services/SanFrancisco_Bldgs/SceneServer';
export function City3D() {
return (
<Scene
basemap="arcGISImagery"
surface={{
elevationSources: [
{ url: 'https://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer' },
],
}}
camera={{ position: { x: -122.4, y: 37.78, z: 600 }, heading: 0, pitch: 65 }}
>
<SceneLayer url={BUILDINGS} />
<SceneView style={{ flex: 1 }} />
</Scene>
);
}
basemap, layers, initialViewpoint,
portalItem and bookmarks belong to <Map>. viewpoint (animates on change),
locationDisplay, contentInsets, timeExtent, grid and the events belong to <MapView>.
The view has no basemap, center or zoom prop: position with a Viewpoint
({ latitude, longitude, scale }, where a smaller scale is closer). A <Map> never feeds a
<SceneView>: use <Scene>.{ type: 'point', x: longitude, y: latitude } (WGS84
unless spatialReference says otherwise). Viewpoints and onTap's mapPoint use
{ latitude, longitude }. Convert between them.nativeEvent: onTap={({ nativeEvent }) => nativeEvent.mapPoint}, and the
same for onMapLoaded, onMapLoadError, onLocationChange, onSceneLoaded,
onSceneLoadError and <DynamicEntityLayer onDynamicEntityChange>. Component callbacks pass
plain values: onGeometryChange(geometry), onTargetVisibilityChange(visibility),
onConnectionStatusChange(status), onMeasurementChange(result), and onLoad(name) on
<UtilityNetwork>.useRef<MapViewHandle>(null) for identify,
identifyPopups, getCenter, retryLoad; FeatureLayerHandle for queries and edits;
SceneViewHandle, LocalSceneViewHandle, GeometryEditorHandle, DynamicEntityLayerHandle,
KmlLayerHandle, RasterLayerHandle, PointCloudLayerHandle, UtilityNetworkHandle.
<TileLayer>, <MapImageLayer>, <SceneLayer> and <GroupLayer> take no ref.<Graphic> ref is a GraphicRef that <Viewshed graphic>, <LineOfSight observerGraphic targetGraphic>, <SceneView orbitGraphic> and <Callout geoElement> consume. Use a callback ref
into state (const [g, setG] = useState<GraphicRef | null>(null), ref={setG}) so the consumer
renders once the graphic exists.<GraphicsOverlay renderer>, which is compared by identity.
Layers are appended as they mount, so the last one mounted draws on top.<Map initialViewpoint> and <Scene camera> set the first
view; move the view later with <MapView viewpoint> / <SceneView camera> from state.portalItem (<Map>, <Scene>, <FeatureLayer>),
<Scene viewingMode>, <FeatureLayer layer>, <RasterLayer rasterFunction>,
<GeoPackageLayer path tableName>, <FeatureCollectionLayer fields features>. Change them by
remounting with a new React key.type ('simple-marker',
'simple-line', 'simple-fill', 'picture-marker', 'text', 'unique-value',
'class-breaks') and hex colors ('#RRGGBB' or '#RRGGBBAA').draped-billboarded, z ignored). To use z, set sceneProperties={{ surfacePlacement: 'absolute' }}
(or 'relative').Promise<JobRef<R>> (offline.* downloads, geoprocessor.execute,
validateNetworkTopology): await the call, then await job.result(); follow
job.addListener('onProgress', ({ progress }) => ...) and stop with job.cancel().onMapLoadError / onSceneLoadError a failed load (bad key,
missing item, service down) leaves an empty view; development builds only log a warning.
ref.current?.retryLoad() tries again.import { Map } from 'expo-arcgis' shadows the JavaScript Map in that file. Alias it
(import { Map as ArcGISMap } from 'expo-arcgis') where the file also needs new Map().esri/...,
no new Graphic(...), no view.goTo(), and queries take whereClause, not where. If a name
is not in these references or in node_modules/expo-arcgis/build/*.d.ts, it does not exist.The API is the same on both platforms. The TSDoc marks the exceptions with @platform or says
"iOS only" / "Android only":
| API | Difference |
|---|---|
signInWithOAuth(portalUrl, clientId, redirectUrl, openAuthSession?) | Android requires openAuthSession (bring your own browser, e.g. expo-web-browser); iOS presents the SDK's browser. |
enablePersistentCredentialStore({ access, synchronizesWithiCloud }) | Both options are iOS only (@platform ios). |
<Callout leaderPosition colors shapes> | Android only (@platform android); the iOS callout has the system look. |
KmlLayerHandle.playTour/pauseTour/resetTour | iOS only; no-op on Android. |
SceneViewHandle.screenPoint() | iOS points, Android pixels; 'not-on-screen' visibility is Android only. |
VectorTileFeature.id | null on Android when the tile has none; iOS reports 0. |
| Untrusted TLS hosts | iOS also needs an App Transport Security exception in Info.plist. |
| Offline download progress | Android 13+ needs the notification permission at runtime. |
Branch on Platform.OS from react-native when a feature exists on one platform only.
Import them by name from expo-arcgis: geometryEngine and coordinateFormatter (synchronous),
geocoder, router, serviceArea, geoprocessor, offline, portal (asynchronous), and the
auth functions setTokenCredential, setServiceCredential, setAppCredential,
signInWithOAuth, signOut, enablePersistentCredentialStore, clearCredentialStore,
setAllowUntrustedHosts. The default export is the native module (ExpoArcgis.setApiKey,
ExpoArcgis.setLicense).
Read the one that matches the task:
| Task | File |
|---|---|
| Install, config plugin, API key and license, permissions, build and runtime errors | references/setup.md |
<Map> / <MapView> props and handles, viewpoints, taps, callouts, web maps, bookmarks, hooks | references/maps-and-views.md |
| Every layer component and its props | references/layers.md |
Geometries, symbols, renderers, labels, clustering, geometryEngine, coordinateFormatter | references/geometry-and-symbols.md |
| Queries, statistics, identify, popups, selection | references/query-and-identify.md |
Editing features, attachments, <GeometryEditor>, branch versions, local geodatabases | references/editing.md |
geocoder, router, serviceArea, geoprocessor, portal | references/geocoding-routing.md |
offline downloads, sync, mobile map packages, JobRef | references/offline.md |
3D: <Scene>, <SceneView>, <LocalSceneView>, cameras, 3D layers and symbols, analysis | references/3d-and-analysis.md |
| API keys, tokens, OAuth, app and service credentials, persistent sign-in | references/authentication.md |
Stream services and <DynamicEntityLayer>, device location | references/real-time-and-location.md |
<UtilityNetwork> traces and topology | references/utility-network.md |
The ArcGIS Toolkit components (Compass, Scalebar, Search, PopupView, FeatureFormView,
BasemapGallery, Authenticator, AR views and more) come from the separate
expo-arcgis-toolkit package, which has its own skill. Most of them are placed inside the
<MapView> or <SceneView>.
npx tsc --noEmit. The package ships full types, so a wrong prop or argument is a
type error.npx expo run:ios or npx expo run:android) after
npx expo prebuild --clean whenever the config plugin options change.onMapLoadError's nativeEvent.message.references/3d-and-analysis.md (opens in a new tab)references/authentication.md (opens in a new tab)references/editing.md (opens in a new tab)references/geocoding-routing.md (opens in a new tab)references/geometry-and-symbols.md (opens in a new tab)references/layers.md (opens in a new tab)references/maps-and-views.md (opens in a new tab)references/offline.md (opens in a new tab)references/query-and-identify.md (opens in a new tab)references/real-time-and-location.md (opens in a new tab)references/setup.md (opens in a new tab)references/utility-network.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/expo-arcgis:expo-arcgisfrom expo-arcgis
npx claudepluginhub alex-krassavin/expo-arcgis --plugin expo-arcgis