react-native detection, and load needed shims (#1349)

* react-native detection

* added lib mobile

* changed back to gun. for another solution
This commit is contained in:
Bradley Matusiak 2024-01-17 12:49:52 -05:00 committed by GitHub
parent 7cb337c158
commit 5c52df2eee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1 +1,4 @@
module.exports = require('./gun.js')
if(!(typeof navigator == "undefined") && navigator.product == "ReactNative"){
require("./lib/mobile.js");
}
module.exports = require('./gun.js');