Skip to content

Commit

Permalink
fix sass, sass transpiler, remove black background
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktorrudzki committed Jan 13, 2024
1 parent d1d11b2 commit d5d2be6
Show file tree
Hide file tree
Showing 6 changed files with 2,067 additions and 18,605 deletions.
2 changes: 1 addition & 1 deletion App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const App = () => {
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#121212',
backgroundColor: 'white',
alignItems: 'center',
justifyContent: 'center',
},
Expand Down
2 changes: 1 addition & 1 deletion app.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"packagerOpts": {
"config": "metro.config.js",
"sourceExts": ["js", "jsx", "scss", "sass"]
"sourceExts": ["js", "jsx", "ts", "tsx"]
},
"assetBundlePatterns": ["**/*"],
"ios": {
Expand Down
24 changes: 10 additions & 14 deletions metro.config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
const { getDefaultConfig } = require('metro-config');
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');

module.exports = (async () => {
const {
resolver: { sourceExts },
} = await getDefaultConfig();
return {
transformer: {
babelTransformerPath: require.resolve('react-native-sass-transformer'),
},
resolver: {
sourceExts: [...sourceExts, 'scss', 'sass'],
},
};
})();
/**
* Metro configuration
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);
Loading

0 comments on commit d5d2be6

Please sign in to comment.