Hi, I recently started using a library which requires me to build custom app separately for ios and android using command npx expo run:ios
and npx expo run:android
respectively which generates /android and /ios folders. I was wandering whether I should add these folders to .gitignore file because I don’t edit anything in those folders and they are just generated every time.
Hi @szolloli
That is a valid way to do things, and given your situation it sounds like it might be best.
When you run eas build
, the build server will run npx expo prebuild
automatically if it does not find android
and ios
directories. This is the step that generates the native projects. (npx expo run:*
calls prebuild too).
So, if you add them to .gitignore
, then the build server will correctly generate them during eas build
.