Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix sass, sass transpiler, remove black background #3

Merged
merged 1 commit into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading