Using Couchbase Mobile and Couchbase SDK with nodejs in v5.0

Hi Team,
I have developed my rest APIs in nodeJS to operate with Couchbase Server v5.0.Now we need to make an app in react-native having offline access and P2P so we are using Couchbase Mobile.

Now Do I need to make different API Logic for mobile separately or I can have some workaround and use my APIs built in nodeJS.

Is making the sync gateway talking directly to the NodeJs API a correct way for using nodejs as a web layer in between sync gateway and couchbase Server? If Yes, then can we have write the autoSync funtion and the peer to peer setup?

TIA