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

哥们,这个在iOS上会导致Modal层不出现 #7

Open
saber-yy opened this issue Aug 15, 2023 · 3 comments
Open

哥们,这个在iOS上会导致Modal层不出现 #7

saber-yy opened this issue Aug 15, 2023 · 3 comments

Comments

@saber-yy
Copy link

版本信息
"react": "18.0.0",
"react-native": "0.69.12",
只要导入这个库,在iOS上使用Modal组件就会出现卡死的情况,调试页面层级发现只有一个RCTModalHostView在最上层,其他的UI不能加载出来,怀疑是

Modal.prototype.render = function() {

Modal.prototype.render = xxx
这部分导致的,能帮忙看一下吗
测试的demo已经传到我的github,链接是:https://github.com/saber-yy/rn_0.69.12.git

@caoyongfeng0214
Copy link
Owner

在较新版本的React Native上与Modal确实有冲突,已知的问题。
但是目前实在是没时间去处理。
建议要么不要与Modal同时使用,或者采用其它的方案取代此package。

@saber-yy
Copy link
Author

在较新版本的React Native上与Modal确实有冲突,已知的问题。
但是目前实在是没时间去处理。
建议要么不要与Modal同时使用,或者采用其它的方案取代此package。

请问您这边有知道其他类似的包可以达到这个效果吗

@caoyongfeng0214
Copy link
Owner

我未发现有相似的,否则也不是创建这个项目了。但提供同类功能的有很多,例如:
https://github.com/react-native-picker/picker
https://github.com/react-native-datetimepicker/datetimepicker
这个issue我会留在这里,待将来有时间时会处理,但目前不确定。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants