kristerkari / react-native-sass-transformer

Use Sass to style your React Native apps.
MIT License
219 stars 19 forks source link

Support for expo-updates 0.2.X #40

Open celandro opened 4 years ago

celandro commented 4 years ago

See: https://github.com/expo/expo/tree/master/packages/expo-updates

Expo just added a requirement for a metro.config.js for bare apps that looks like:

module.exports = {
  transformer: {
    assetPlugins: ['expo-asset/tools/hashAssetFiles'],
  },
};

I tried a bunch of different things including mergeConfig and

module.exports = (async () => {
  const {
    resolver: { sourceExts }
  } = await getDefaultConfig();
  return {
    transformer: {
      babelTransformerPath: require.resolve("react-native-sass-transformer"),
      assetPlugins: ['expo-asset/tools/hashAssetFiles'],
    },
    resolver: {
      sourceExts: [...sourceExts, "scss", "sass"]
    },
  };
})();

but I could not get it to work

bouchja1 commented 3 years ago

Hi @celandro, did you solve this already? I have a similar issue :(.