If you need to add a custom native library, then you’ll have to detach, which means exp build:ios won’t work any more. In that case you would need to generate the build yourself (from your native Xcode project).
If you just want to get push notifications in your app, Expo can do this for you (without firebase).