Call recorder app

Is it possible to build a call recorder with React Native and some db like mongo or firebase?
I tried to search on the internet and realized that there is a problem with privacy enforced by IOS and Android, is there a solution for this? maybe third party libraries?