Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime-rn里面的最外层scrollView问题 #14093

Closed
fanlvwen opened this issue Jun 30, 2023 · 0 comments · Fixed by #14095
Closed

runtime-rn里面的最外层scrollView问题 #14093

fanlvwen opened this issue Jun 30, 2023 · 0 comments · Fixed by #14095
Labels
enhancement New feature or request

Comments

@fanlvwen
Copy link

这个特性解决了什么问题?

这个, nestedScrollEnabled: true辛苦更新一下呗,不然每次都要手动修改

这个 API 长什么样?

  1. 修改 /node_modules/@tarojs/runtime-rn/dist/page.js下代码428行
    - return h(ScrollView, Object.assign(Object.assign({ style: [{ flex: 1 }, (bgColor ? { backgroundColor: bgColor } : {})], contentContainerStyle: useNativeStack ? {} : { minHeight: '100%' }, ref: this.pageScrollView, scrollEventThrottle: 8 }, refresh), { onScroll: (e) => this.onPageScroll(e), onMomentumScrollEnd: (e) => this.onReachBottom(e) }), this.createPage());
                 
      return h(ScrollView, Object.assign(Object.assign({ style: [{ flex: 1 }, (bgColor ? { backgroundColor: bgColor } : {})], contentContainerStyle: useNativeStack ? {} : { minHeight: '100%' }, ref: this.pageScrollView, scrollEventThrottle: 8 }, refresh), { onScroll: (e) => this.onPageScroll(e), onMomentumScrollEnd: (e) => this.onReachBottom(e), nestedScrollEnabled: true }), this.createPage());
                   
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant