Hi!
I just experienced an issue while upgrading from 0.0.80 to 0.0.99. After the update, onLocationChange handler isn't getting called when I change the page and as such I'm not able to save progress inside the reader. I dug a little deeper and found out that the correct event (relocated) isn't getting dispatched to the _onBridgeMessage function inside components/Rendition.js from the WebView. To verify it I put alerts in the following code just like this:
case"relocated":{
alert('relocated'); // Here. This isn't dispatched.
var _decoded=
decoded,location=_decoded.location;
this._relocated(location);
break;
}
case"press":{
this.props.onPress&&this.props.onPress(decoded.cfi,this);
break;
}
case"longpress":{
alert('longpress'); // And here. This is dispatched.
this.props.onLongPress&&this.props.onLongPress(decoded.cfi,this);
break;
}
The longpress alert is occuring but the relocated alert isn't getting called. Thus the onLocationChange handler in the higher API isn't getting called as a result.
I've updated my deps to the latest ones and copied them from the example app.
My package.json looks like this.
Hi! I just experienced an issue while upgrading from
0.0.80
to0.0.99
. After the update,onLocationChange
handler isn't getting called when I change the page and as such I'm not able to save progress inside the reader. I dug a little deeper and found out that the correct event(relocated)
isn't getting dispatched to the_onBridgeMessage
function insidecomponents/Rendition.js
from the WebView. To verify it I put alerts in the following code just like this:The
longpress
alert is occuring but therelocated
alert isn't getting called. Thus theonLocationChange
handler in the higher API isn't getting called as a result. I've updated my deps to the latest ones and copied them from the example app. Mypackage.json
looks like this.Occurs for both Android as well as iOS. I'm using a detached expo app which uses ExpoKit 17.0.0.