Can you recommend me a wat to implement real live location tracking (even on the background) in my expo app?

I am building a simple app where users can exchange locations. I’m using Expo, React Native and Firebase Real-Time Database for my backend.

At the moment, I am successfully sending and receiving static locations, but I wanted to implement live location tracking, with the app on the background or not.

A friend told me that I could use socket.io to achieve this, but I wanted to ask you first if this was the best way to go.

Please keep in mind that I am still a junior developer.