I am aware about building apk with expo for react native only but I am on a project which uses express node Js to get data and show in React native. How to build apk for this project ?? Moreover do I have to use Mongodb as currently everything is on localhost and this may not work on production.P.s. I am not familiar with express, node, mongodb. Just saw some video to get my work done.Below code is the part of express node file
var a = gsrun(client)app.get("/", async function (req, res) { res.send(await a)})const PORT = 8080;app.listen(PORT, function () { console.log("hello world")})
This is the part of react native, used to connect to node
connect = () => { const URL = "http://192.168.43.240:8080"; fetch(URL).then(response => response.json()) .then(response => { console.log(response); setDoList(response) }).catch(error => { Alert.alert(error.message); } );}
Please guide me and show the correct path.