Closed Faseeh-Abbas-Khan closed 1 year ago
@Faseeh-Abbas-Khan currently we're using RNFS to store files. It's been a while since I've tried doing it directly with require
(if ever). I'd recommend trying to use RNFS as require
isn't a big priority for us (unless you'd like to do debugging and submit a PR).
Take a look at how it's done in the example: https://github.com/5-stones/react-native-readium/blob/main/example/src/components/Reader.tsx
@jspizziri I have managed to open the file thanks to the example you have given, but the epub file I am using has interaction, sounds, and animation but, I cannot make them run for my particular file, can you also suggest me any specific change to be made to make them run.
@Faseeh-Abbas-Khan I've never worked with an epub like that. You'll need to do some digging on the underlying readium libraries to see what is supported there and how.
If the EPUB is a fixed-layout, then interactions won't work in Readium on Android, see https://github.com/readium/kotlin-toolkit/issues/131
I need help on giving file path to ReadiumView @jspizziri @mrogers-5s @Ken-Michalak