javascript - Can weex clear an interface from the navigation history?
天蓬老师
天蓬老师 2017-05-19 10:27:16
0
1
688

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?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(1)
某草草

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template