Hanks10100 / weex-native-directive

Weex native directive design
67 stars 14 forks source link

To support scrollToElement #19

Closed zengxiaoting closed 5 years ago

zengxiaoting commented 6 years ago

when will the recycle-list support the Dom API scroolToElement, or providing another API to support scroll to specific height is also OK.

auhah commented 6 years ago

I found the scrollTo method with the @JSMethod annotation in the Android code WXRecyclerTemplateList.java. How do I call it in weex?

Hanks10100 commented 6 years ago

Weex already supports scrollTo in native. The problem is how to pass the precise ref to native within recycle-list.

Native renderer generate a mock structure for Elements which contains the ref attribute may be a practical way to solve it. We are working on it now. As far as I can see, the API would not be changed.

yuangu commented 5 years ago

这个目前有进展么?

Hanks10100 commented 5 years ago

It has already been supported, try this demo http://dotwe.org/vue/c4dfb6367159e9dcaf210c4c29059f20

dagar07 commented 5 years ago

It has already been supported, try this demo http://dotwe.org/vue/c4dfb6367159e9dcaf210c4c29059f20

Not working, Please check