Skip to content

Commit 3fb2843

Browse files
committed
upate
1 parent 6e5cc5a commit 3fb2843

File tree

1 file changed

+5
-7
lines changed
  • challenges/foundation

1 file changed

+5
-7
lines changed

challenges/foundation/05.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -144,22 +144,20 @@ is horrible at scale.
144144
Instead we should be able to:
145145

146146
```javascript
147-
import { ScreenContainer } from "~/components/ScreenContainer";
147+
import { ScreenContainer } from "@/components/ScreenContainer";
148148
```
149-
[Expo path aliases documentation](https://docs.expo.dev/guides/typescript/#path-aliases)
149+
[Expo path aliases documentation](https://docs.expo.dev/guides/typescript/#path-aliases-optional)
150150
- [ ] Open your `tsconfig.json` file and add:
151151

152152
```diff
153153
{
154154
"extends": "expo/tsconfig.base",
155155
"compilerOptions": {
156156
"strict": true,
157-
++ "baseUrl": "./",
157+
++ "baseUrl": ".",
158158
++ "paths": {
159-
++ "~/*": ["src/*"]
159+
++ "@/*": ["src/*"]
160160
++ }
161161
}
162162
}
163-
```
164-
165-
163+
```

0 commit comments

Comments
 (0)