Scan your whole stack
From OX Research Newsroom
Are you using esri-react-native?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v1.0.1
esri-react-native was last scanned on 9 Sep 2026 at version 1.0.1. Risk score 90 of 100 (critical). High-severity rules fired.
| Version | Published | Status |
|---|---|---|
| 1.0.1 LATEST | 9 Sep 2026 | 3 rules fired |
| 1.0.0 | 9 Sep 2026 | 3 rules fired |
Findings for v1.0.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
A file that the package's install scripts may run reads a local file, and the value read appears to reach an outbound network call. Install-time code does not normally need to upload local files.
HIGHThe score describes 1.0.1; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
React Native Expo module for ArcGIS Maps SDK with map visualization, location services, and comprehensive observability features.
Both native layers use a thin EsriReactNativeView (under 250 lines) that only orchestrates, splitting responsibilities into dedicated packages (full tables in API_REFERENCE.md).
Android — android/src/main/java/expo/modules/esrireactnative/:
core/ — pure Kotlin (no android.*/com.arcgismaps.* imports): Validation, ColorParser, FlyToPlanner, VectorTileSpec, MarkerSpec, BasemapSpec, HostAllowlist, Geodesy, EventPayloads, ZoomScale.controllers/ — SDK-facing adapters, one responsibility each, receiving a logger and coroutine scope by constructor: MapHostController, BasemapController, ScaleLimitsController, VectorTileController, MarkerController, NavigationController, InitialViewpointController, LocationController.geo/ — GeometryUtils (envelope operations, Haversine fallback; the only controller-adjacent code allowed to touch com.arcgismaps.*).networking/ / logging/ — HttpAuth/AllowedHostsAuthInterceptor (selective Bearer token injection, HTTP client configured once per process) and NativeLogger (per-view, no singleton).iOS — ios/, mirroring the same split in Swift:
Core/ — pure Swift (no import ArcGIS/UIKit/ExpoModulesCore): Validation, ColorParser, FlyToPlanner, VectorTileSpec, MarkerSpec, BasemapSpec, HostAllowlist, EventPayloads, ZoomScale, and the generated Version.swift.Controllers/ — SDK-facing adapters (@MainActor), one responsibility each, receiving an EsriLogger by constructor: MapHostController, ScaleLimitsController, BasemapController, VectorTileController, MarkerController, NavigationController, InitialViewpointController, LocationController.Networking/HttpAuth.swift — AuthState (lock-protected Bearer token + allowlist) and AllowedHostsAuthInterceptor, assigned once per process to ArcGISURLSession.dataTaskInterceptor/downloadTaskInterceptor (the SDK's official interception mechanism, mirroring Android's Interceptor) via EsriHttpSetup.ensureConfigured().SwiftUI/MapContainerView.swift — the ArcGIS.MapView wrapper (gestures, viewpoint tracking), with the logger injected.Logging/NativeLogger.swift — per-view, no singleton.This keeps responsibilities isolated and maintainable without changing the public JS API.
JUnit unit tests (android/src/test/java/.../core/) cover every core/ file against fixtures shared with JS and Swift (test-fixtures/*.json): validation, color parsing, flyTo duration/curve math, vector tile spec/signature, marker spec, basemap spec, host allowlist, geodesy. Run them with npm run test:android (via example/android, see CLAUDE.md for the fixture-as-Gradle-input gotcha).
swift test (npm run test:swift, requires a full Xcode install — Command Line Tools alone can't link XCTest) covers the same shared fixtures against ios/Core/ (ios/Tests/CoreTests/), plus iOS-only cases (finalURL, MarkerDiff, EventPayloads, noStateDuration, intermediateScale) documented as not fixture-driven where iOS behavior intentionally diverges from Android (see docs/sdk-notes.md).
Behavior coupled to the ArcGIS runtime (controllers) is validated by compiling and via the manual parity checklist (docs/parity-checklist.md) in the example app and in downstream consumers.
npm install esri-react-native
Add the plugin to your Expo config (app.json/app.config.ts):
{
"expo": {
"plugins": [
[
"esri-react-native",
{
"allowedHosts": ["myserver.example.com"]
}
]
]
}
}
| Option | Type | Default | Description |
|---|---|---|---|
iosDeploymentTarget |
string |
"17.0" |
Floor for the iOS deployment target (Podfile.properties.json and every pbxproj build configuration). Only raises the current value, never lowers it. |
androidMinSdkVersion |
number |
28 |
Floor for android.minSdkVersion in gradle.properties. Same floor-only behavior as iosDeploymentTarget. |
addLocationPermissions |
boolean |
true |
Adds NSLocation*UsageDescription (iOS) and ACCESS_FINE_LOCATION/ACCESS_COARSE_LOCATION (Android) when not already present. |
allowedHosts |
string[] |
[] |
Hosts, or full URLs, allowed to receive the Authorization: Bearer header. Normalized to lowercase hostnames. |
deriveAllowedHostFromExtra |
boolean |
true |
Also derives an allowed host from expo.extra.koopServerUrl, when present. |
addATSExceptionForAllowedHosts |
boolean |
true |
Adds an App Transport Security exception (plain HTTP) for allowedHosts, scoped to atsExceptionEnvs. |
atsExceptionEnvs |
AppEnv[] |
["development"] |
Environments where the ATS exception is applied. AppEnv is "development" \| "preview" \| "production". |
env |
AppEnv |
process.env.APP_ENV → process.env.EAS_BUILD_PROFILE → "development" |
Overrides the environment used to resolve atsExceptionEnvs. |
NSLocation*UsageDescription entries, EsriAllowedHosts in Info.plist, ATS exceptions for allowedHosts (only in the envs listed in atsExceptionEnvs), and a floor on IPHONEOS_DEPLOYMENT_TARGET / ios.deploymentTarget.ACCESS_FINE_LOCATION / ACCESS_COARSE_LOCATION permissions, the Esri Maven repository in the root build.gradle, and a floor on android.minSdkVersion in gradle.properties.expo.extra.esriAllowedHosts with the resolved, normalized host list, for consumption from JS.The ArcGIS xcframeworks aren't published on npm. A postinstall script (npm run ios:vendor) downloads and unpacks them into ios/Vendor on first install. It's idempotent — tracked by an ios/Vendor/.version marker, so it's skipped once the expected version is already there — and requires a full Xcode install (not just Command Line Tools); without Xcode it warns instead of failing. If ios/Vendor is still missing when you build, EsriReactNative.podspec raises a clear error rather than failing with an obscure linker error — re-run npm run ios:vendor on a machine with Xcode, or copy ios/Vendor from one that already has it.
import React from "react";
import { StyleSheet } from "react-native";
import { EsriReactNativeView } from "esri-react-native";
export default function App() {
return (
<EsriReactNativeView
style={styles.map}
apiKey="YOUR_ARCGIS_API_KEY"
showUserLocation={true}
autoPanMode="navigation"
initialCenter={{ latitude: 40.7128, longitude: -74.006 }}
initialScale={50000}
vectorTiles={[
{
id: "osm-vector",
url: "https://basemaps.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer",
reference: false,
},
]}
/>
);
}
```
### Licensing
ArcGIS Runtime requires both an API key (for basemaps/services) and optionally a license key (to exit Developer mode and unlock additional capabilities). If you do not provide a `licenseKey` the app runs in Developer mode.
Minimal usage:
```tsx
<EsriReactNativeView apiKey={"YOUR_API_KEY"} licenseKey={"runtimelite,1000,..."} />
```
The license string format matches the ArcGIS documentation. Invalid or blank values are ignored with a structured error event.
const styles = StyleSheet.create({
map: {
flex: 1,
},
});
The library emits structured log events you can intercept via the onLog prop. Every log passes through a normalizer so that both native (iOS/Android) and JS logs share the same shape.
import { LogEntry } from "esri-react-native";
function handleLog(entry: LogEntry) {
// Send to Sentry, Datadog, etc.
if (entry.level === "error") {
console.error("[MapError]", entry);
}
}
<EsriReactNativeView onLog={handleLog} debugLogs />
| Field | Type | Description |
|---|---|---|
level |
debug \| info \| warn \| error |
Normalized severity. Non‑standard domain levels (INIT, ESRI, ZOOM…) are mapped to info with originalLevel. |
message |
string |
Human readable message (never empty, fallback '(no message)'). |
detail |
string? |
Additional context or error details. |
where |
string? |
Code location (e.g. EsriReactNativeView.goTo). |
scope |
string? |
High‑level domain extracted from where or original level (e.g. ZOOM, INIT). |
platform |
ios \| android |
Origin platform (guessed in JS if missing). |
ts |
number |
Unix seconds timestamp. |
thread |
string? |
main or background (native only). |
sequence |
number? |
Monotonic counter (per process). Useful for ordering. |
originalLevel |
string? |
Raw level before mapping (e.g. ZOOM). |
memoryMB |
number? |
Approximate resident memory (iOS). |
version |
string? |
Native bundle version (iOS). |
operationId |
string? |
Correlation id for future grouped operations (flyTo/goTo). |
duplicateCount |
number |
Number of times the same message repeated in a short window (starts at 1). |
Rapid identical messages within a 1.5s window increment duplicateCount instead of flooding output. After a small interval the count resets automatically. Deduplication is automatic and scoped per view instance; there is no public API to reset it manually.
Errors use a separate onError callback with fields: code, message, detail?, where?, ts, thread?, originalErrorMessage?.
level for routing (e.g., send only error/warn to external monitoring).scope to build dashboards (performance of ZOOM, frequency of MARKER).duplicateCount.Upcoming enhancement: navigation methods (goTo, multi‑phase flyTo) and related map interactions will emit a generated operationId that stays constant across all log entries and intermediate viewpoint changes for that operation. This enables:
Until released, placeholder field may be null or omitted. Code relying on it should degrade gracefully. 4. Correlate sequences or future operationId for multi‑phase animations (flyTo).
| Symptom | Cause | Fix |
|---|---|---|
Many duplicateCount > 10 |
Tight loop / redundant state updates | Throttle calling code or suppress identical triggers. |
Missing scope |
Location lacks a prefix or non‑domain level | Add meaningful where parameter in native/js log calls. |
| Platform shows wrong value | JS fallback heuristics fired | Ensure native emission includes platform. |
Set the debugLogs prop to true; debug messages (internals, clamp decisions, LOD readiness) appear only when enabled.
<EsriReactNativeView debugLogs onLog={handleLog} />
Sensitive values (API keys, tokens) are redacted natively showing only a short prefix.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.