Blender 2.8 - render image creates only an outline of the image
If you want to render the scene as it is displayed in the 3D view, you'll have to set the render engine to Workbench. You can do this in render tab in Blender 2.8.



Otherwise when rendering with Cycles or Eevee you need to setup materials and lighting otherwise you won't be seeing much in your render.