I am getting isMobile = false in the case of react native app from the express-useragent npm module. Although it is working in the case of Native script app.
Attaching the response from both the apps: React Native app response:
{
isYaBrowser: false,
isAuthoritative: false,
isMobile: false,
isMobileNative: false,
}
Also the response from Native script app:
{
isYaBrowser: false,
isAuthoritative: true,
isMobile: true,
isMobileNative: true,
}
The code which I've used is as follow:
app.use(useragent.express());
app.get('/', function(req, res){
res.send(req.useragent);
});