I am trying to get a reference to each node object to pull data including node author, node created date, etc. I used following code on the node page:

$node = \Drupal::routeMatch()->getParameter('node');

But how can I get reference to each node from views? Above code returns null when running in view mode.

I am using Drupal 8.3.2.

Thank you.