File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -144,22 +144,20 @@ is horrible at scale.
144
144
Instead we should be able to:
145
145
146
146
``` javascript
147
- import { ScreenContainer } from " ~ /components/ScreenContainer" ;
147
+ import { ScreenContainer } from " @ /components/ScreenContainer" ;
148
148
```
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 )
150
150
- [ ] Open your ` tsconfig.json ` file and add:
151
151
152
152
``` diff
153
153
{
154
154
"extends": "expo/tsconfig.base",
155
155
"compilerOptions": {
156
156
"strict": true,
157
- + + "baseUrl": "./ ",
157
+ + + "baseUrl": ".",
158
158
+ + "paths": {
159
- + + "~ /*": ["src/*"]
159
+ + + "@ /*": ["src/*"]
160
160
+ + }
161
161
}
162
162
}
163
- ```
164
-
165
-
163
+ ```
You can’t perform that action at this time.
0 commit comments