Skip to content

Commit 71642a8

Browse files
committed
feat: update package dev dep
1 parent 3ebcdee commit 71642a8

File tree

10 files changed

+15337
-9648
lines changed

10 files changed

+15337
-9648
lines changed

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ buck-out/
6060
android/app/libs
6161
android/keystores/debug.keystore
6262

63+
64+
# Yarn
65+
.yarn/*
66+
!.yarn/patches
67+
!.yarn/plugins
68+
!.yarn/releases
69+
!.yarn/sdks
70+
!.yarn/versions
71+
6372
# Expo
6473
.expo/*
6574

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 28 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.6.1.cjs

Lines changed: 874 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.yarnrc.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
nodeLinker: node-modules
2+
nmHoistingLimits: workspaces
3+
4+
plugins:
5+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
6+
spec: "@yarnpkg/plugin-interactive-tools"
7+
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
8+
spec: "@yarnpkg/plugin-workspace-tools"
9+
10+
yarnPath: .yarn/releases/yarn-3.6.1.cjs

package.json

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,30 +55,29 @@
5555
"registry": "https://registry.npmjs.org/"
5656
},
5757
"devDependencies": {
58-
"@arkweid/lefthook": "^0.7.7",
5958
"@commitlint/config-conventional": "^17.0.2",
60-
"@react-native-community/eslint-config": "^3.0.2",
59+
"@evilmartians/lefthook": "^1.5.0",
60+
"@react-native/eslint-config": "^0.73.1",
6161
"@release-it/conventional-changelog": "^5.0.0",
62-
"@types/jest": "^28.1.2",
63-
"@types/react": "~17.0.21",
64-
"@types/react-native": "0.70.0",
62+
"@types/jest": "^29.5.5",
63+
"@types/react": "^18.2.44",
6564
"commitlint": "^17.0.2",
66-
"del-cli": "^5.0.0",
67-
"eslint": "^8.4.1",
68-
"eslint-config-prettier": "^8.5.0",
69-
"eslint-plugin-prettier": "^4.0.0",
65+
"del-cli": "^5.1.0",
66+
"eslint": "^8.51.0",
67+
"eslint-config-prettier": "^9.0.0",
68+
"eslint-plugin-prettier": "^5.0.1",
7069
"jest": "^28.1.1",
71-
"pod-install": "^0.1.0",
72-
"prettier": "^2.0.5",
73-
"react": "18.1.0",
74-
"react-native": "0.70.5",
75-
"react-native-builder-bob": "^0.20.1",
70+
"prettier": "^3.0.3",
71+
"react": "18.3.1",
72+
"react-native": "0.75.3",
73+
"react-native-builder-bob": "^0.30.2",
7674
"release-it": "^15.0.0",
77-
"typescript": "^4.5.2"
75+
"typescript": "^5.2.2"
7876
},
7977
"resolutions": {
80-
"@types/react": "17.0.21"
78+
"@types/react": "^18.2.44"
8179
},
80+
"packageManager": "[email protected]",
8281
"peerDependencies": {
8382
"react": "*",
8483
"react-native": "*"
@@ -115,7 +114,7 @@
115114
"eslintConfig": {
116115
"root": true,
117116
"extends": [
118-
"@react-native-community",
117+
"@react-native",
119118
"prettier"
120119
],
121120
"rules": {

src/NativeMytracker.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ import type { TurboModule } from 'react-native';
22

33
import { TurboModuleRegistry } from 'react-native';
44

5+
// Union types are unsupported in structs
6+
// so we replace it with enums
7+
enum LocationTrackingMode {
8+
TrackingModeNone = 0,
9+
TrackingModeCached = 1,
10+
TrackingModeActive = 2,
11+
}
12+
513
export interface Spec extends TurboModule {
614
/**
715
* Initializing the tracker
@@ -105,7 +113,7 @@ If your application requests access to the device's location, you can enable thi
105113
* 0 - do not track the user's location (default);
106114
* 1 or 2 - track the user's location;
107115
*/
108-
trackLocation(number: 0 | 1 | 2): void;
116+
trackLocation(number: LocationTrackingMode): void;
109117
/**
110118
* Enables/disables debug mode. The default is false.
111119
* @default 0

yarn.lock

Lines changed: 13849 additions & 9627 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)