Skip to content

Instantly share code, notes, and snippets.

@flunder
Last active March 30, 2023 17:20
Show Gist options
  • Save flunder/3177e046cf3f679a9440a832011688a0 to your computer and use it in GitHub Desktop.
Save flunder/3177e046cf3f679a9440a832011688a0 to your computer and use it in GitHub Desktop.
Expo alias path using @ example ( Expo v6.3.2 )
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
["module-resolver", {
"alias": {
"@app": "./src",
},
"extensions": [
".ts",
".tsx",
]
}],
]
};
};
import { Box, Text } from "@app/Components"; ✅
{
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@app/*": ["src/*"]
}
},
"extends": "expo/tsconfig.base",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment