You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the new version, this has to be imported with node_modules/ as a prefix -> import {Expression} from 'node_modules/@rnmapbox/maps/src/utils/MapboxStyles'
Expected behavior
Import without node_modules/ prefix.
Notes / preliminary analysis
Same thing needed for type imports from these paths:
node_modules/@rnmapbox/maps/src/components/SymbolLayer
node_modules/@rnmapbox/maps/src/utils/MapboxStyles
node_modules/@rnmapbox/maps/src/components/MapView
node_modules/@rnmapbox/maps/src/types/OnPressEvent
The src/ paths aren't part of the public API, so we don't plan to re-expose them. We also don't want to export a single Expression type: expressions for different props (filters, colors, numbers, …) may not share the same type in the future. Please derive the type from the component prop instead, e.g.
Activity
FernandoAOborges commentedon Feb 11, 2026
The solution I’m using to get the types is:
allthetime commentedon May 20, 2026
They need to be added here:
https://github.com/rnmapbox/maps/blob/main/src/Mapbox.native.ts
Lots of types exported from library files are missing.
mfazekas commentedon Oct 13, 2026
The
src/paths aren't part of the public API, so we don't plan to re-expose them. We also don't want to export a singleExpressiontype: expressions for different props (filters, colors, numbers, …) may not share the same type in the future. Please derive the type from the component prop instead, e.g.That stays correct if we make the expression types stricter per prop.