You’ were trying to import the navigator as a default import but you defined it as a named export (check this out https://snack.expo.io/HJwwu_rZQ)
import Foo from './file' is just syntactic sugar for import { default as Foo } from './file' if you want a named export you’ll need to import { Foo } from './file' (or update your export to be the default)