-
Notifications
You must be signed in to change notification settings - Fork 375
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
Feat intersection observer #1649
Conversation
packages/core/src/platform/patch/react/getDefaultOptions.ios.js
Outdated
Show resolved
Hide resolved
packages/core/src/platform/patch/react/getDefaultOptions.ios.js
Outdated
Show resolved
Hide resolved
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
// 初次调用的 | ||
if (isCallback) { | ||
this.callback({ | ||
index: index, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
packages/api-proxy/src/platform/api/create-intersection-observer/rnIntersectionObserver.js
Outdated
Show resolved
Hide resolved
packages/core/src/platform/patch/react/getDefaultOptions.ios.js
Outdated
Show resolved
Hide resolved
top: navigation.isCustomHeader ? this.margins.top : navigation.headerHeight, | ||
left: this.margins.left, | ||
right: screen.width - this.margins.right, | ||
bottom: navigation.layout.height + navigation.headerHeight - this.margins.bottom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
测试一下vh的计算逻辑
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vh计算逻辑不对,需要改一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vh 使用navigation.layout 因为是异步在初始计算的时候还是会不符合预期,后续才是对的
添加相交API功能