-
Notifications
You must be signed in to change notification settings - Fork 328
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
无论如何我都获取不到 setNativeProps 这个方法,v0.68.2 #661
Comments
主要看这行:this.renderListRef[i].current.measure // undefined |
我不会用ref去测量,用起来不可靠,还是每个都去onLayout最可靠 也没看懂你这个组件是要干什么,你可以参考我用reanimated做滚动组件,我猜你大概也是要写类似的东西? |
事情大概是这样的,为了实现图文混排,并且需要换行,最常见的场景就是商品前加一个 「特惠」的标志或者双十一的标签,这可能是一个View组件或者是Image,后面跟着Text文本,然后设定超出显示 ...。我想做的就是把text每一个字符拆成独立的text,父元素flex-wrap: warp换行,最后利用onLayout计算超出的文字,然后将超出之前的最后三个字符转换为... |
collapsable={false} |
👋 Hey there, it looks like there has been no activity on this issue in the last 90 days. Has the issue been fixed, or does it still require the community attention? This issue will be closed in the next 7 days if no further activity occurs. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
The text was updated successfully, but these errors were encountered: