First, Weex technical points

  1. Weex Component setProperty can get properties other than width and height
  2. Weex for Android native unit is px. Default is relative to 750 screen. This corresponds to the size of the XHDPI.
  3. 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
  4. Weex Event If the Event name does not start with ON, the native terminal cannot obtain the Event
  5. Weex will convert null passed to Native to an empty string “”, regardless of the type

ReactNative technology points

  1. RN does not handle null and passes it as-is

Three, size conversion

The relevant size of the same Mi 8 phone