React Native metro issue with reanimated and firebase

Viewed 21

In order for me to get expo firebase working properly I had to make a metro.config file, where inside I added


const defaultConfig = getDefaultConfig(__dirname);

defaultConfig.resolver.assetExts.push("cjs");

module.exports = defaultConfig;

but with react reanimated I have to add

module.exports = {
  presets: ["module:metro-react-native-babel-preset"],
  plugins: ["react-native-reanimated/plugin"],
};

but when I try to combine the code I either get a idb error or a namespace error. What's the best way to export this code above?

0 Answers
Related