Skip to content

Commit

Permalink
fix: cropping on navigation bar images
Browse files Browse the repository at this point in the history
Signed-off-by: Kimi Yap <[email protected]>
  • Loading branch information
ItsMeKimi committed Sep 26, 2024
1 parent 4b45c0c commit eb41c2e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ android/
ios/
# macOS
.DS_Store
.vscode

# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb
# The following patterns were generated by expo-cli
Expand Down
3 changes: 3 additions & 0 deletions app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function TabLayout() {
title: 'Home',
tabBarIcon: ({size, color, focused}) => (
<Image
contentFit="contain"
style={{width: size, height: size}}
source={require('../../assets/tab_icons/home.svg')}
/>
Expand All @@ -31,6 +32,7 @@ export default function TabLayout() {
title: 'SOS',
tabBarIcon: ({size, color, focused}) => (
<Image
contentFit="contain"
style={{width: size, height: size}}
source={require('../../assets/tab_icons/sos.svg')}
/>
Expand All @@ -43,6 +45,7 @@ export default function TabLayout() {
title: 'Resources',
tabBarIcon: ({size, color, focused}) => (
<Image
contentFit="contain"
style={{width: size, height: size}}
source={require('../../assets/tab_icons/feedback.svg')}
/>
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"prettier:check": "npm run prettier:cli -- --check",
"prettier:fix": "npm run prettier:cli -- --write",
"lint:check": "npm run eslint && npm run prettier:check",
"lint:fix": "npm run eslint:fix && npm run prettier:fix"
"lint:fix": "npm run eslint:fix && npm run prettier:fix",
"android": "expo run:android",
"ios": "expo run:ios"
},
"dependencies": {
"@expo-google-fonts/mulish": "^0.2.3",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"jsx": "react",
"jsx": "react-jsx",
"strict": true,
"paths": {
"@/*": [
Expand Down

0 comments on commit eb41c2e

Please sign in to comment.