'react native expo - read epub in client
im trying to read an .epub file in my expo project without success. tried to use multiple libraries. epubjs, ... tried to unzip it. using 'react-native-zip-archive', but had a different error. tried many things. nothings worked.
my code:
if(result.type != 'cancel' && result.name.endsWith('epub')){
let fileUri = result.uri
let folderPath = fileUri.substring(0,fileUri.lastIndexOf("/")+1);
//unzip file to temp folder
let unzipPath = folderPath
//unzip(fileUri, unzipPath)
//doesnt let read files inside zip
// const files = await StorageAccessFramework.readDirectoryAsync(fileUri);
}
any idea how to get file contents from an epub in expo?
thnx
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
