futurepress/epubjs-rn

TypeError: section.document.createRange is not a function

Opened this issue · 0 comments

react-native: "0.61.5"

function doSearch(q) {
return Promise.all(
book.spine.spineItems.map(item => item.load(book.load.bind(book)).then(item.find.bind(item, q)).finally(item.unload.bind(item)))
).then(results => Promise.resolve([].concat.apply([], results)));
};

does not work in react native
Simulator Screen Shot - iPhone 11 - 2020-07-13 at 13 02 50
TypeError: section.document.createRange is not a function