In order to avoid \'../../../../\' style relative imports in a TypeScript based React Native app, I would like to configure the app so that I can use absolute imports instea
For anyone who uses TypeScript and just wants to use import with absolute paths without aliases.
Assuming all of your code folders are inside of src.
src
Insert "baseUrl": "src" in compilerOptions object inside tsconfig.json.
"baseUrl": "src"
compilerOptions
tsconfig.json
Now you can use absolute paths in imports.