Pre-loaded chapters get loaded in a zero-height/zero-width webView #513
Unanswered
smoores-dev
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I can't find any issue with the code you shared. Maybe an interoperability issue with Expo? I'm not familiar with React Native, but maybe you would have a better chance with https://github.com/5-stones/react-native-readium? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I... am not sure where to start here; I've been messing around with this for quite a while and I'm very much at a dead end.
I'll start by saying that I haven't opened an issue because I fully can't reproduce this on the test app, so this must be in some way something that I'm doing.
In Storyteller, when I first load the navigator, it correctly loads the current chapter, previous chapter, and next chapter. However, when I swipe through to the next chapter, the next pre-loaded chapter's webview has height and width 0. This happens in the other direction as well; basically any time I navigate to a chapter that wasn't in the initial three loaded when the view is first loaded.
I'm not sure what's even helpful, but here's my Fragment that uses the EpubNavigatorFactory: https://gitlab.com/smoores/storyteller/-/blob/main/mobile/modules/readium/android/src/main/java/expo/modules/readium/EpubFragment.kt?ref_type=heads
And here's the View that renders that Fragment: https://gitlab.com/smoores/storyteller/-/blob/main/mobile/modules/readium/android/src/main/java/expo/modules/readium/EpubView.kt?ref_type=heads
Beta Was this translation helpful? Give feedback.
All reactions