Skip to content

Commit 01b6860

Browse files
committed
fix(remove script yarn typescript): fix yarn typescript failure
1 parent 30dc37b commit 01b6860

File tree

5 files changed

+758
-548
lines changed

5 files changed

+758
-548
lines changed

.github/workflows/pull-request.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ jobs:
3030

3131
- name: Lint files
3232
run: yarn lint
33-
34-
- name: Typecheck files
35-
run: yarn typescript
3633

3734
- name: Run Jest Unit Tests
3835
run: yarn test

.github/workflows/release.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ jobs:
5252

5353
- name: Lint files
5454
run: yarn lint
55-
56-
- name: Typecheck files
57-
run: yarn typescript
5855

5956
- name: Run Jest Unit Tests
6057
run: yarn test

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"@semantic-release/npm": "^7.1.3",
6565
"@semantic-release/release-notes-generator": "^9.0.3",
6666
"@types/jest": "^26.0.0",
67-
"@types/react": "^16.9.19",
67+
"@types/react": "^17.0.14",
6868
"@types/react-native": "0.62.13",
6969
"commitizen": "^4.2.3",
7070
"commitlint": "^12.1.1",

src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const EVENT_NAME = 'onChangeLocationSettings';
1515
const locationEnabler = new NativeEventEmitter(LocationEnabler);
1616

1717
LocationEnabler.addListener = (listener: Listener, context?: any) =>
18-
Platform.OS === 'android' ? locationEnabler.addListener(EVENT_NAME, listener, context) : () => {};
18+
Platform.OS === 'android'
19+
? locationEnabler.addListener(EVENT_NAME, listener, context)
20+
: () => {};
1921

2022
LocationEnabler.once = (listener: Listener, context?: any) =>
2123
locationEnabler.once(EVENT_NAME, listener, context);

0 commit comments

Comments
 (0)