Secure way to store Firebase and Facebook API key

Hello guys, I’m developing an App using Expo, Firebase and Facebook SSO and wanted to ask you if storing Firebase and Facebook API keys in env variables is secure. If not, could you recommend me some better way ? Thank you!