Skip to content

Commit 0d769ea

Browse files
ShivaniNRclaude
andcommitted
Fix EAS Android build: add splash plugin config and missing peer deps
The build was failing at aapt link because ic_launcher_background.xml referenced a splashscreen_logo drawable that was never generated - the expo-splash-screen plugin was missing from app.json entirely. Also install expo-font and react-native-svg (peer deps of @expo/vector-icons and react-native-gifted-charts) so their native modules land in the APK. Without them, JS calls into native binding methods that don't exist and throws "getDirectConverter" NoSuchMethodError at runtime. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent a0df80b commit 0d769ea

3 files changed

Lines changed: 60 additions & 59 deletions

File tree

‎mobile/app.json‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636
"microphonePermission": "Allow Finance Tracker to access the microphone so you can log transactions by voice.",
3737
"speechRecognitionPermission": "Allow Finance Tracker to use speech recognition to turn your voice into transaction details."
3838
}
39+
],
40+
"expo-font",
41+
[
42+
"expo-splash-screen",
43+
{
44+
"image": "./assets/splash-icon.png",
45+
"imageWidth": 200,
46+
"resizeMode": "contain",
47+
"backgroundColor": "#ffffff"
48+
}
3949
]
4050
],
4151
"extra": {

‎mobile/package-lock.json‎

Lines changed: 47 additions & 59 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎mobile/package.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@
1515
"expo-dev-client": "~6.0.21",
1616
"expo-document-picker": "~14.0.8",
1717
"expo-file-system": "~19.0.23",
18+
"expo-font": "~14.0.12",
1819
"expo-linear-gradient": "~15.0.8",
1920
"expo-speech-recognition": "^3.1.3",
21+
"expo-splash-screen": "~31.0.13",
2022
"expo-status-bar": "~3.0.9",
2123
"papaparse": "^5.5.3",
2224
"react": "19.1.0",
2325
"react-native": "0.81.5",
2426
"react-native-gifted-charts": "^1.4.77",
2527
"react-native-safe-area-context": "~5.6.0",
2628
"react-native-screens": "~4.16.0",
29+
"react-native-svg": "15.12.1",
2730
"react-native-url-polyfill": "^3.0.0"
2831
},
2932
"scripts": {

0 commit comments

Comments
 (0)