It's not showing because the Bootstrap 4 classes and structure are different from Bootstrap 3.
Also important:
When loading JavaScript files, you must load jQuery first, then Popper.js and then Bootstrap.js.
This is what a Bootstrap 4 navbar looks like: