Adds Esri's native SwiftUI and Jetpack Compose ArcGIS Maps SDK Toolkit components (compass, scalebar, legend, search, popup, floor filter, AR scene view, OAuth sign-in, offline map areas, and more) to Expo/React Native apps using expo-arcgis. Configures the config plugin with camera, microphone, OAuth, AR, and job manager options.
Ships in expo-arcgis-toolkit. 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-toolkit brings the ArcGIS Maps SDK Toolkits (Swift and Kotlin) to apps built on
expo-arcgis. Each component is Esri's own native view, driven by the app's <Map> / <MapView>
or <Scene> / <SceneView>. Its props are the Toolkit's settings, with the Toolkit's names and
defaults.
Set up expo-arcgis first: its config plugin, API key and a development build (it doesn't run
in Expo Go). The expo-arcgis skill covers that; without it, see
https://mapforge.dev/guides/getting-started/.
Install both packages:
npx expo install expo-arcgis expo-arcgis-toolkit
Add the toolkit's config plugin after expo-arcgis's:
// app.config.js
module.exports = {
expo: {
plugins: [
['expo-arcgis', { apiKey: process.env.ARCGIS_API_KEY }],
'expo-arcgis-toolkit',
],
},
};
Regenerate the native projects and rebuild the app:
npx expo prebuild --clean
Then build again (npx expo run:ios, npx expo run:android, or EAS Build). A change to the
plugin's options only applies after a rebuild; reloading the JavaScript doesn't apply it.
The plugin's options, as ['expo-arcgis-toolkit', { … }]:
| Option | Needed for |
|---|---|
| (none) | By default: iOS camera and microphone descriptions (feature form attachments, barcodes), and what OfflineMapAreas needs |
cameraUsageDescription, microphoneUsageDescription | Your own wording; false leaves one out |
offlineMapAreas: false | Leaving out what OfflineMapAreas needs |
jobManager: true | jobManager (iOS) |
oAuthRedirectUris: ['my-app-auth://auth'] | Authenticator's OAuth and IAP sign-ins on Android |
ar: true, or ar: { arcore, arcoreApiKey, locationWhenInUseUsageDescription } | The augmented reality views |
Details, defaults and examples: references/config-plugin.md.
| Component | Kind | iOS | Android | Reference |
|---|---|---|---|---|
Compass | accessory, map or scene view | ✓ | ✓ | accessories |
Scalebar | accessory, map view | ✓ | ✓ | accessories |
OverviewMap | accessory, map or scene view | ✓ | — | accessories |
LocationButton | accessory, map view | ✓ | — | accessories |
FloorFilter | accessory, map or scene view with floor-aware data | ✓ | ✓ | accessories |
BasemapGallery | panel for a <Map> | ✓ | ✓ | panels |
Bookmarks | panel for a view | ✓ | — | panels |
Legend | panel for a view | — | ✓ | panels |
Search | panel for a view | ✓ | — | panels |
BuildingExplorer | panel for a <LocalSceneView> | ✓ | — | panels |
UtilityNetworkTrace | panel for a map view with utility networks | ✓ | ✓ | panels |
FloatingPanel | your React content in a panel over a view | ✓ | — | panels |
PopupView | panel: a popup from identifyPopups | ✓ | ✓ | popups and forms |
FeatureFormView | panel: a feature from identify, edited | ✓ | ✓ | popups and forms |
OfflineMapAreas | panel for a web map (<Map portalItem>) | ✓ | ✓ | offline |
jobManager | functions: long jobs kept across launches | ✓ | — | offline |
Authenticator | app-level: sign-in prompts | ✓ | ✓ | authenticator |
TableTopSceneView, FlyoverSceneView, WorldScaleSceneView | a <SceneView> in augmented reality | ✓ | ✓ | augmented reality |
Compass, Scalebar, OverviewMap, LocationButton, FloorFilter) go
inside the <MapView> or <SceneView>, as its children. The view draws them over the map at
their alignment (default per component), clear of its contentInsets. They take no style and
no children. Placed next to the view inside <Map>, they throw.BasemapGallery, OfflineMapAreas) go anywhere inside the <Map>: next
to the <MapView>, below it, in a sheet. <Map> and <Scene> draw no view of their own: their
children lay out in the parent view, so your own views can sit among them too.Bookmarks, Legend, Search, BuildingExplorer,
UtilityNetworkTrace) go inside the view, laid out over the map with style, or anywhere else
with the view's ref as geoView. The view must be mounted when the panel mounts.PopupView and FeatureFormView go anywhere. Pass the ref of a result from the view's
identifyPopups (popup) or of a feature from its identify (feature).style (a
height, flex, or an absolute position with width and height).FloatingPanel goes inside the view and covers it; give its content flex: 1.Authenticator: one, at the root of the app, mounted for as long as the app runs.<SceneView>, inside a <Scene>.import { useRef, useState } from 'react';
import { View } from 'react-native';
import { Map, MapView, type MapViewHandle, type PopupRef } from 'expo-arcgis';
import { Bookmarks, Compass, PopupView, Scalebar } from 'expo-arcgis-toolkit';
export default function MapScreen() {
const mapView = useRef<MapViewHandle>(null);
const [popup, setPopup] = useState<PopupRef | null>(null);
return (
<View style={{ flex: 1 }}>
<Map portalItem={{ itemId: '<web map id>' }}>
<MapView
ref={mapView}
style={{ flex: 1 }}
onTap={async ({ nativeEvent }) => {
const [result] = (await mapView.current?.identifyPopups(nativeEvent.screenPoint)) ?? [];
setPopup(result?.ref ?? null);
}}
>
{/* Accessories: children of the view. */}
<Compass />
<Scalebar units="metric" />
</MapView>
</Map>
{/* A panel for the view, outside it: bound by the view's ref (iOS only). */}
<Bookmarks geoView={mapView} style={{ height: 200 }} />
{/* A popup, from identifyPopups. */}
{popup && <PopupView popup={popup} onDismiss={() => setPopup(null)} style={{ height: 320 }} />}
</View>
);
}
Platform.OS checks for safety.
Branch on Platform.OS only to show something else in its place.Search on Android: a search field of the app's own on expo-arcgis's geocoder
(geocoder.suggest, geocoder.geocode; the expo-arcgis skill covers it).Legend on iOS, and Bookmarks, OverviewMap, LocationButton, BuildingExplorer,
FloatingPanel on Android: the app's own UI, or nothing there. Neither package has another
component for them.WorldScaleSceneView,
trackingMode for iOS and worldScaleTrackingMode for Android).<MapView> (inside <Map>) instead of inside it.Scalebar or LocationButton in a <SceneView>: they are for map views, and render nothing
there.BuildingExplorer bound to a <SceneView>: it needs a <LocalSceneView> with building scene
layers.UtilityNetworkTrace without graphicsOverlay: it renders nothing. It also needs mapPoint
from the map view's onTap to add starting points.Search results expected on the map without resultsOverlay: they only show in its list.PopupView or FeatureFormView: pass onDismiss, which shows it.FeatureFormView's Save taken as saved to the service: it only saves to the feature's table.
Apply the edits in onEditingEvent.OfflineMapAreas on a <Map basemap>: it needs a web map (portalItem) enabled for offline use.jobManager without the plugin's jobManager: true: on iOS its functions throw.<Authenticator>, or one mounted only on a sign-in screen.oAuthRedirectUris, or with a redirect URL
that uses the app's own scheme.ar option, or with an
opaque scene surface (the camera feed doesn't show).Read the reference for the component at hand:
Compass, Scalebar, OverviewMap, LocationButton, FloorFilter.BasemapGallery, Bookmarks, Legend, Search, BuildingExplorer, UtilityNetworkTrace, FloatingPanel.PopupView, FeatureFormView, applying edits.OfflineMapAreas, jobManager.Authenticator, OAuth and IAP on both platforms, sign-out.TableTopSceneView, FlyoverSceneView, WorldScaleSceneView.The full API, with each prop's @platform: https://mapforge.dev/api-toolkit/readme/. Guide and
samples: https://mapforge.dev/guides/toolkit/.
references/accessories.md (opens in a new tab)references/augmented-reality.md (opens in a new tab)references/authenticator.md (opens in a new tab)references/config-plugin.md (opens in a new tab)references/offline.md (opens in a new tab)references/panels.md (opens in a new tab)references/platform-differences.md (opens in a new tab)references/popups-and-forms.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-toolkit:expo-arcgis-toolkitfrom expo-arcgis-toolkit
npx claudepluginhub alex-krassavin/expo-arcgis --plugin expo-arcgis-toolkit