From 5c52df2eee4a871d2661f3c1b0e4ef146ffbf5cd Mon Sep 17 00:00:00 2001 From: Bradley Matusiak Date: Wed, 17 Jan 2024 12:49:52 -0500 Subject: [PATCH] react-native detection, and load needed shims (#1349) * react-native detection * added lib mobile * changed back to gun. for another solution --- browser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/browser.js b/browser.js index 2459a30ce..39553b9f9 100644 --- a/browser.js +++ b/browser.js @@ -1 +1,4 @@ -module.exports = require('./gun.js') \ No newline at end of file +if(!(typeof navigator == "undefined") && navigator.product == "ReactNative"){ + require("./lib/mobile.js"); +} +module.exports = require('./gun.js');