epubjs-rn
epubjs-rn copied to clipboard
permanent highlight
hello the highlighted text is removing highlight after reopening book can we make a permanent highlight ?
onPress={(cfi, position, rendition)=> { this.toggleBars(); console.log("press", cfi); }} onLongPress={(cfi, rendition,cfiRange)=> { console.log("longpress", cfi); rendition.highlight(cfiRange, {}); }} onViewAdded={(index) => { console.log("added", index) }} beforeViewRemoved={(index) => { console.log("removed", index) }} onSelected={(cfiRange, rendition) => { console.log("selected", cfiRange)
rendition.highlight(cfiRange, {});
}}
onMarkClicked={(cfiRange) => {
console.log("mark clicked", cfiRange)
}}
Did anyone find a way to do this?
Anything on this?
hi you can save parameter cfiRange in array and when reopening book call rendition.highlight with array of cfi list