//react native or expo
//1. open package.json
//(change myapp to whatever you want to, it can even be src.)
{
"name": "myapp"
}
//2. update your tsconfig.json file
{
"compilerOptions": {
...
"baseUrl": "./",
"paths": {
"myapp/*": ["*"]
},
...
}
}
//3.In your.tsx file
import { MyThing } from 'myapp/MyThing';