start-react / native-starter-kit

React Native Starter App with NativeBase + CodePush + Redux
http://GeekyAnts.com
Other
1.59k stars 372 forks source link

What does the @ symbol do in javascript imports? #129

Closed redochka closed 7 years ago

redochka commented 7 years ago

in src/index.js i see imports like this:


// Consts and Libs
import { AppStyles } from '@theme/';
import AppRoutes from '@navigation/';
import Analytics from '@lib/analytics';

What does the @ symbol do in javascript imports?

sanketsahu commented 7 years ago

https://stackoverflow.com/questions/42711175/what-does-the-symbol-do-in-javascript-imports

redochka commented 7 years ago

i have found this stackoverflow before, but the accepted response refers to babel-plugin-root-import however there is no trace of babel-plugin-root-import in the native-starter-kit repo. Can you confirm if babel-plugin-root-import is being used here?