We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
react-native init sample --version [email protected] cd sample npm install rnmapbox/maps#main --save # or released version `npm install @rnmapbox/[email protected] --save` react-native run-android
I cant find the types for MapBox. Where are they? Do I have to install @types/mapbox-gl?
import { FeatureCollection } from "@rnmapbox/maps"; // cant find the module here.
I have latest typescript version.
The text was updated successfully, but these errors were encountered:
@eybel I'm not sure we use FeatureCollection type in our interface.
FeatureCollection
Please use
import type { FeatureCollection } from '@turf/helpers';
Sorry, something went wrong.
@eybel I'm not sure we use FeatureCollection type in our interface. Please use import type { FeatureCollection } from '@turf/helpers';
I havent used that, is an external package?
There is this alternative, but I am not sure whats the best option.
import { FeatureCollection } from "geojson";
I'm pretty sure turfjs and geojson type definitions are compatible.
'@turf/helpers'
Alright then, thank you!
No branches or pull requests
Environment
Steps to reproduce
I cant find the types for MapBox. Where are they? Do I have to install @types/mapbox-gl?
import { FeatureCollection } from "@rnmapbox/maps"; // cant find the module here.
I have latest typescript version.
The text was updated successfully, but these errors were encountered: