React-native `root` is undefined
mmahalwy opened this issue · 2 comments
mmahalwy commented
When using
import adhan from 'adhan'
in react-native, https://github.com/batoulapps/Adhan/blob/master/JavaScript/Adhan.js#L13 root
is undefined and breaks everything. Should do a check. Regardless, what is expected root to be?
mmahalwy commented
module.exports = factory.call(root || {});
is a fix.