A screen assembly and an electronic device are provided according to the disclosure. The screen assembly includes a backlight module, a display panel, a camera module, and a light shielding member. The backlight module is stacked with the display panel and defines a mounting through hole for at least partially receiving the camera module. The light shielding member is sandwiched between the backlight module and the display panel and defines a first through hole through which the camera module extends. The light shielding member is configured to block light leakage of the display panel and the backlight module toward the camera module.