Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ Not a Mapbox user yet? [Sign up for an account here](https://www.mapbox.com/sign
cd example
```
* Create a file called `accesstoken` in the root of the example project and just paste in your [Mapbox access token](https://www.mapbox.com/studio/account/tokens/). (The `accesstoken` file is processed in postinstall, so you need to run `yarn install` after adding/changing accesstoken.)

* Install our dependencies using `yarn install`.
* Tell the TypeScript compiler to recompile when files are changed with `yarn dev`.

<br>

Expand Down
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -360,13 +360,13 @@ PODS:
- React-perflogger (= 0.68.1)
- RNGestureHandler (1.10.3):
- React-Core
- rnmapbox-maps (10.0.0-beta.7):
- rnmapbox-maps (10.0.0-beta.15):
- MapboxMaps (~> 10.5.0)
- React
- React-Core
- rnmapbox-maps/DynamicLibrary (= 10.0.0-beta.7)
- rnmapbox-maps/DynamicLibrary (= 10.0.0-beta.15)
- Turf
- rnmapbox-maps/DynamicLibrary (10.0.0-beta.7):
- rnmapbox-maps/DynamicLibrary (10.0.0-beta.15):
- MapboxMaps (~> 10.5.0)
- React
- React-Core
Expand Down Expand Up @@ -596,7 +596,7 @@ SPEC CHECKSUMS:
React-runtimeexecutor: 7285b499d0339104b2813a1f58ad1ada4adbd6c0
ReactCommon: bf2888a826ceedf54b99ad1b6182d1bc4a8a3984
RNGestureHandler: a479ebd5ed4221a810967000735517df0d2db211
rnmapbox-maps: c3ac5adc02b0ca6870758127e088ae40ab6eade0
rnmapbox-maps: f88612089df70340b68fd7136b28f9c7efc7d7ea
RNScreens: 40a2cb40a02a609938137a1e0acfbf8fc9eebf19
RNSVG: 302bfc9905bd8122f08966dc2ce2d07b7b52b9f8
RNVectorIcons: 4143ba35feebab8fdbe6bc43d1e776b393d47ac8
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"main": "./index.js",
"scripts": {
"dev": "npx tsc --watch",
"android": "react-native run-android",
"ios": "react-native run-ios --simulator=\"iPhone SE (2nd generation)\"",
"pod:install": "cd ios && pod install",
Expand All @@ -19,7 +20,6 @@
"dependencies": {
"@mapbox/geo-viewport": "^0.5.0",
"@mapbox/mapbox-sdk": "^0.13.0",
"@rnmapbox/maps": "file:..",
"@turf/along": "^6.5.0",
"@turf/bbox": "^6.5.0",
"@turf/bbox-polygon": "^6.5.0",
Expand Down Expand Up @@ -81,4 +81,4 @@
}
}
}
}
}
7 changes: 6 additions & 1 deletion example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true
"skipLibCheck": true,
"paths": {
"@rnmapbox/maps": [
".."
],
}
},
"files": [
"index.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"unittest:single": "jest --testNamePattern",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"prepare": "npx tsc; cp -R ./assets ./lib/assets; npm run build:plugin",
"prepare": "npm run generate; npm run build:plugin",
"test:plugin": "expo-module test plugin",
"build:plugin": "tsc --build plugin",
"lint:plugin": "eslint plugin/src/*"
Expand Down