I just upgraded expo to SDK 40 Beta, and I got that error:
Error: Element type is invalid: expected a string (for built-in components) or a class/function (fo