search

Home  >  Q&A  >  body text

javascript - Can weex clear an interface from the navigation history?

An interface that displays the logo is implemented using weex. After clicking or the countdown ends, the main interface is entered.
If you press the return key on your phone at this time, you will return to the previous logo interface. Is there any way to clear the previous logo interface?
Do I have to add my own model to adapt to the clearing?
Weex’s interface IActivityNavBarSetter, I wonder if it can be adapted to achieve this function?

天蓬老师天蓬老师2779 days ago680

reply all(1)I'll reply

  • 某草草

    某草草2017-05-19 10:29:16

    After trying it, I found that the current interface can be cleared through navigator.pop. After calling navigator.push to the new interface, call navigator.pop immediately to realize that the history record does not have this interface.
    This is the simplest solution. If it is more complicated, you need to modify the native layer.

    reply
    0
  • Cancelreply