mirror of
https://github.com/amark/gun.git
synced 2026-03-17 21:58:49 +00:00
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:
@@ -1 +1,4 @@
|
||||
module.exports = require('./gun.js')
|
||||
if(!(typeof navigator == "undefined") && navigator.product == "ReactNative"){
|
||||
require("./lib/mobile.js");
|
||||
}
|
||||
module.exports = require('./gun.js');
|
||||
|
||||
Reference in New Issue
Block a user