weex icon indicating copy to clipboard operation
weex copied to clipboard

navigator的push和pop方法中,设置'animated' : 'false'无效

Open charlescui opened this issue 10 years ago • 2 comments

在examples的navigator-demo.we文件中

    methods: {
      push: function() {
        var vm = this;
        var params = {
          'url':  this.baseURL + 'component/navigator-demo.js?test=1',
          'animated' : 'false',
        }
        vm.$call('navigator','push',params, function () {});
      },

      pop: function() {
        var vm = this;
        var params = {
          'animated' : 'false',
        }
        vm.$call('navigator','pop',params, function () {});
      },
    }

设置animated的参数为false,但动画效果依然有。期望结果应该是瞬间切换页面,无动画移动效果。

charlescui avatar Jun 30 '16 06:06 charlescui

测试设备是iPhone6p。

charlescui avatar Jun 30 '16 07:06 charlescui

sorry,this is a bug in WXNavigationDefaultImp.m.
NSString *obj = [[param objectForKey:@"animated"] uppercaseString];
UppercaseString should be lowercaseString. If it is convenient, you can resolve this problem. We will correct this mistake soon.

boboning avatar Jul 05 '16 01:07 boboning