Skip to content

Commit 3daec59

Browse files
committed
🐛 fix examples ts issue
1 parent 29da23f commit 3daec59

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

examples/example-bare/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"compilerOptions": {
44
"strict": true,
55
"allowSyntheticDefaultImports": true,
6-
"esModuleInterop": true
6+
"esModuleInterop": true,
7+
"paths": {
8+
"react": ["./node_modules/@types/react"]
9+
}
710
}
811
}

examples/example-expo/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"compilerOptions": {
44
"strict": true,
55
"allowSyntheticDefaultImports": true,
6-
"esModuleInterop": true
6+
"esModuleInterop": true,
7+
"paths": {
8+
"react": ["./node_modules/@types/react"]
9+
}
710
}
811
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"clean": "rm yarn.lock && rm -rf ./node_modules && yarn install",
2828
"lint": "eslint --ext .ts,.tsx .",
2929
"lint:fix": "eslint --ext .ts,.tsx . --fix",
30+
"ts": "tsc --noEmit",
3031
"prepare": "yarn build"
3132
},
3233
"homepage": "https://github.com/troberts-28/react-native-timer-picker",

0 commit comments

Comments
 (0)