这个库可以实现jspatch那样覆盖原生的方法么
Opened this issue · 1 comments
yzm347404 commented
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
vimfung commented
LSC不提供直接反射原生层代码的功能,必须要实现ExportType的类型和对象才能在lua中使用。如果需要实现JSPath中的热更,可能你需要在原生层实现一些反射规则,然后在通过LSC暴露到脚本中来实现动态更新。