The sample has a button called “open page 1” with the code
> this.props.appViewService.open("SamplePage1");
and a button calledopen page with the code:
this.props.appViewService.open("SamplePage2");
It’s pretty obvious that the intent here is to be able to switch back and forth between the two pages by clicking buttons but the behavior seems to work for the first click only…
Looking at the doc for appViewService.open
we indeed see:
* Called by AppContainer to pass in the refs to the view.
* Should only be called once.
Now, it’s just a sample so a bug doesn’t matter, but then, there is no API in the AppViewService class that allows the obvious behavior.
Is it possible to freely swich pages in the AppViewService? Or do EFB app impementation simply bypass the AppViewService api entirely?
Thanks.