Moves some common methods from View class to NativeView class.

The common methods moved can be applied to NativeView, too.

Signed-off-by: Olli Wang <olliwang@ollix.com>