Expo - Alias path example
source link: https://gist.github.com/ChronSyn/ffca12630eb36c71465a1c5d7149a6ae
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Alias path example · GitHub
Instantly share code, notes, and snippets.
These 2 files show how to correctly setup an Expo project to use alias paths with typescript.
Where you might import a component like this:
import MyComponent from "../../../components/path/to/my/component"
You can instead use:
import MyComponent from "@Components/path/to/my/component"
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK