We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
react-native 下面使用 bindingx, 当 ScrollView 设置 横向滚动,horizontal={true} 时,不会生效。 JSX:
<View ref={c => { this.instance = c }} style={{ // position: 'absolute', // top: 270, height: 300, width: '100%', backgroundColor: 'red' }}/> <ScrollView horizontal={true} ref={c => { this.carouselRef = c }}> {images} </ScrollView>
JS:
let anchor = findNodeHandle(this.carouselRef) let target = findNodeHandle(this.instance); let token = bindingx.bind({ eventType: 'scroll', anchor: anchor, props: [ { element: target, property: 'transform.translateY', expression: 'x+0' } ] }, this.onStateChange); this._token = token.token;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
react-native 下面使用 bindingx, 当 ScrollView 设置 横向滚动,horizontal={true} 时,不会生效。
JSX:
JS:
The text was updated successfully, but these errors were encountered: