Pārlūkot izejas kodu

Run CI on PRs, fix lint + ts

Janic Duplessis 4 gadus atpakaļ
vecāks
revīzija
57264d4894
3 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 1
    1
      .github/workflows/nodejs.yml
  2. 1
    1
      src/NativeSafeAreaView.web.tsx
  3. 1
    0
      tsconfig.json

+ 1
- 1
.github/workflows/nodejs.yml Parādīt failu

1
 name: Node CI
1
 name: Node CI
2
 
2
 
3
-on: push
3
+on: [push, pull_request]
4
 
4
 
5
 jobs:
5
 jobs:
6
   build:
6
   build:

+ 1
- 1
src/NativeSafeAreaView.web.tsx Parādīt failu

31
         paddingBottom,
31
         paddingBottom,
32
         paddingLeft,
32
         paddingLeft,
33
         paddingRight,
33
         paddingRight,
34
-      } = getComputedStyle(element);
34
+      } = window.getComputedStyle(element);
35
 
35
 
36
       const insets = {
36
       const insets = {
37
         top: paddingTop ? parseInt(paddingTop, 10) : 0,
37
         top: paddingTop ? parseInt(paddingTop, 10) : 0,

+ 1
- 0
tsconfig.json Parādīt failu

10
     "module": "commonjs",
10
     "module": "commonjs",
11
     "strict": true,
11
     "strict": true,
12
     "moduleResolution": "node",
12
     "moduleResolution": "node",
13
+    "skipLibCheck": true,
13
     "lib": ["dom", "es2015", "es2016", "esnext"],
14
     "lib": ["dom", "es2015", "es2016", "esnext"],
14
     "jsx": "react-native"
15
     "jsx": "react-native"
15
   },
16
   },