mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-06-18 20:50:54 -04:00
30 lines
977 B
JavaScript
30 lines
977 B
JavaScript
module.exports = {
|
|
presets: ["module:metro-react-native-babel-preset"],
|
|
plugins: [
|
|
"transform-inline-environment-variables",
|
|
"nativewind/babel",
|
|
["module-resolver", {
|
|
alias: {
|
|
api: "./src/api",
|
|
components: "./src/components",
|
|
dictionaries: "./src/dictionaries",
|
|
i18n: "./src/i18n",
|
|
images: "./src/images",
|
|
// for some reason, this doesn't seem to work for models, so I'm leaving that directory out
|
|
navigation: "./src/navigation",
|
|
providers: "./src/providers",
|
|
realmModels: "./src/realmModels",
|
|
sharedHelpers: "./src/sharedHelpers",
|
|
sharedHooks: "./src/sharedHooks",
|
|
styles: "./src/styles"
|
|
}
|
|
}],
|
|
"react-native-reanimated/plugin" // Reanimated 2 plugin has to be listed last https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation/
|
|
],
|
|
env: {
|
|
production: {
|
|
plugins: ["react-native-paper/babel"]
|
|
}
|
|
}
|
|
};
|