batoulapps/Adhan

React-native `root` is undefined

mmahalwy opened this issue · 2 comments

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?

        module.exports = factory.call(root || {});

is a fix.

z3bi commented

@mmahalwy can you check if the fix in #40 resolves the issue?