-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not working with react-native@0.61.4 #156
Comments
|
@GrinchakAndrew Hi thank you for your reply I already tried that but then i am getting this error |
Yes I am getting the same error in react-naive 0.61.3.Please help !! |
I resolved by edit metro.config.js to: |
What worked for me was:
const blacklist = require('metro-config/src/defaults/blacklist');
module.exports = {
resolver: {
blacklistRE: blacklist([/node_modules\/.*\/node_modules\/react-native\/.*/])
},
transformer: {
getTransformOptions: async () => ({
transform: {
experimentalImportSupport: false,
inlineRequires: false
}
})
}
};
|
I was having these exact same problems (although I was using react-native 0.62.2) and was stuck with the Element Ref error. I switched to @ottofeller/epubjs-rn and all the problems went away. |
Were you able to make it work in IOS? using @ottofeller/epubjs-rn? Because I am using that also, but the problem is, in IOS, the paginated flow doesn't work. |
Could you try to delete the epubjs-rn/node-modules/react-native. |
@piyachetk can you guide me about the @ottofeller/epubjs-rn as I'm using this one, It's work fine for only opf source but when I use the code to load .epub then error occurred |
@Mubeen07 This could be a link issue with the react-native-zip-archive library, make sure your follow all the installation steps |
Thank you @vitorverasm |
@Mubeen07 try |
Thanks @vitorverasm Cheers |
what have you done that worked? what version of react-native? |
how have you linked the libs from epubjs-rn ? I cannot run the instructions to link, when using rn 0.60+. |
@muriloneo you can try to:
I've managed to work on a private fork in my use case, good luck! |
Thanks a lot @vitorverasm. I also changed the metro config but on iOS the simulator stays blank, with errors:
using this package:
Can you please share your working package.json, please? |
@muriloneo I no longer have access to the project that I used
|
Thanks @vitorverasm. I think I'm going somewhere! lol. I have to install ottofeller package. epubjs-rn has a ref problem but I'm getting: error: Error: While trying to resolve module How to install a forked project? |
@muriloneo Did you install with? It should've worked 🤔 |
Yeah, I did just like that. with '@' without, with NPM and YARN! |
@muriloneo if you'd like I can send you a documentation I've made when I was working with a fork of |
Just sent you an email! Thanks |
@muriloneo I've created a gist for this maybe it helps others beyond yourself, but feel free to send me an email if wanted |
It's a pity that a library that helps several people does not have adequate maintenance, currently in react-native there is no concrete way to view epub files and this library facilitates this process. However, more and more people continue to create library forks, as the basic structure of the library does not meet the needs. I don't feel that I have the capacity to help maintain the library, but I can help with documentation and help wanted questions. |
@vitorverasm with your @vitorverasm/react-native-static-server the project did not build.
|
This works (on mac): package.json
|
Using Ottofeller fork he uses another props like pagingEnabled, which is fine. It's great! |
after doing this, the error is gone but the screen is blank and doesn't show anything (sometimes a loading indicator) |
have you used npm or yarn? I suggest you install all dependencies with NPM. Don't know why, for me, with yarn, it does not install forked repo the right way. |
ok I'll test it with npm again and share the result import {Epub} from '@ottofeller/epubjs-rn'; const App: () => React$Node = () => { export default App; |
Run debug and show the error. Sometimes it does not show the error in console. |
@vitorverasm i have installed @vitorverasm/epubjs-rn successfully but loader keeps loading and then giving me error (screenshot above). Any idea how can I resolve it ? |
it gives me no error |
@bhaskarj61 try removing |
try using this metro.config const blacklist = require('metro-config/src/defaults/blacklist'); module.exports = { |
thank you. I'll test it |
@vitorverasm Hope you are doing fine. Is there any way to load files which required authentication as well in epubjs-rn, like loading file from nextcloud or required auth headers or username/password? |
getting this error after typing
any solutions please? |
Try with npm. I got this error using yarn. Don't know why. Change the metro.config.js to:
|
Thanks for the update, it did work with Any idea, how do i see the epub book view please? |
I think its important to add height and width props to show the epub, which is missing from the documentation. |
For me removed react-native-cli and add metro.config.js with below script const blacklist = require('metro-config/src/defaults/blacklist'); module.exports = { |
hii,
I am using this library but it's not working with react-native@0.61.4.
I am getting this error
"Cannot find module 'warnOnce' from 'react-native-implementation.js' ".
The text was updated successfully, but these errors were encountered: