Skip to content

Commit 66e0e70

Browse files
authored
Merge pull request #7 from TritonSE/shared-components
Shared components (Part 1)
2 parents a5f2025 + 6049db9 commit 66e0e70

18 files changed

+1630
-19
lines changed

frontend/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
},
2626
"web": {
2727
"favicon": "./assets/favicon.png"
28-
}
28+
},
29+
"plugins": ["expo-font"]
2930
}
3031
}
Lines changed: 18 additions & 0 deletions
Loading

frontend/assets/icons/bookmark.svg

Lines changed: 18 additions & 0 deletions
Loading

frontend/assets/icons/clock.svg

Lines changed: 3 additions & 0 deletions
Loading

frontend/assets/icons/people.svg

Lines changed: 3 additions & 0 deletions
Loading

frontend/metro.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const { getDefaultConfig } = require("expo/metro-config");
2+
3+
module.exports = (() => {
4+
const config = getDefaultConfig(__dirname);
5+
6+
const { transformer, resolver } = config;
7+
8+
config.transformer = {
9+
...transformer,
10+
babelTransformerPath: require.resolve("react-native-svg-transformer"),
11+
};
12+
config.resolver = {
13+
...resolver,
14+
assetExts: resolver.assetExts.filter((ext) => ext !== "svg"),
15+
sourceExts: [...resolver.sourceExts, "svg"],
16+
};
17+
18+
return config;
19+
})();

0 commit comments

Comments
 (0)