mirror of
https://github.com/standardnotes/mobile.git
synced 2026-02-02 20:11:28 -05:00
* chore: add support of svg files * chore: replace original `no-shadow` rule to stop receiving false positive warnings * feat: show editor icons and note status icons (pinned, deleted, etc.) * refactor: store new colors in themes * fix: handle missing icons case for note cell * fix: get icon color and tint from snjs, remove duplicate color (`#086DD6`) from themes * feat: let users to hide the editor icons * chore: snjs version bump
31 lines
753 B
JavaScript
31 lines
753 B
JavaScript
/**
|
|
* Metro configuration for React Native
|
|
* https://github.com/facebook/react-native
|
|
*
|
|
* And for svg files usage
|
|
* https://stackoverflow.com/a/65231261/2504429
|
|
* @format
|
|
*/
|
|
const {getDefaultConfig} = require('metro-config');
|
|
|
|
module.exports = (async () => {
|
|
const {
|
|
resolver: {sourceExts, assetExts},
|
|
} = await getDefaultConfig();
|
|
return {
|
|
transformer: {
|
|
getTransformOptions: async () => ({
|
|
transform: {
|
|
experimentalImportSupport: false,
|
|
inlineRequires: false,
|
|
},
|
|
}),
|
|
babelTransformerPath: require.resolve('react-native-svg-transformer')
|
|
},
|
|
resolver: {
|
|
assetExts: assetExts.filter(ext => ext !== "svg"),
|
|
sourceExts: [...sourceExts, "svg"]
|
|
},
|
|
};
|
|
})();
|