First, Weex technical points
- Weex Component setProperty can get properties other than width and height
- Weex for Android native unit is px. Default is relative to 750 screen. This corresponds to the size of the XHDPI.
- In weex events from WEEX to native, the Event name prefix on is removed and written in a smaller size. So the event onLoadEvent, it’s written in loadevent on the native side
- Weex Event If the Event name does not start with ON, the native terminal cannot obtain the Event
- Weex will convert null passed to Native to an empty string “”, regardless of the type
ReactNative technology points
- RN does not handle null and passes it as-is
Three, size conversion
The relevant size of the same Mi 8 phone