Hello fellow seniors, I have been reading articles about weex these past two days and have integrated them. Among them, I encountered some problems and I don’t know whether I haven’t found a method or there is no method. Forget the answers from seniors:
1. After testing, it was found that the entire page rendered through weex can only control the distance between x and y on OC, but cannot control it. Its width and height. (I have found the view that needs to be rendered. I wanted to control the width and height of the view to control the display effect, but found that it did not work. So, the width and height of the rendered page are controlled in js?)
2. After rendering, how is the jump method implemented? I found that it seemed to overwrite the system's nav.
Is there anyone who can tell me the answer
1. The width and height you set will be overwritten by the CSS value or the calculated result. If you must set it, you can always look at the source code to understand the component declaration cycle. For example, the setting in layoutDidFinish should be valid
Use native pushVC