Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.

Não consigo descobrir esse bug de jeito nenhum!

O erro ocorre ao adicionar a linha abaixo no arquivo App.js

Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of CellRenderer.

This error is located at: in RCTView (at VirtualizedList.js:2058) in CellRenderer (at VirtualizedList.js:851) in RCTScrollContentView (at ScrollView.js:1063) in RCTScrollView (at ScrollView.js:1196) in ScrollView (at VirtualizedList.js:1280) in VirtualizedList (at FlatList.js:633) in FlatList (at App.js:20) in RCTScrollContentView (at ScrollView.js:1063) in RCTScrollView (at ScrollView.js:1196) in ScrollView (at App.js:19) in App (at renderApplication.js:45) in RCTView (at AppContainer.js:109) in RCTView (at AppContainer.js:135) in AppContainer (at renderApplication.js:39)

createFiberFromTypeAndProps ReactNativeRenderer-dev.js:23069:21 createFiberFromElement ReactNativeRenderer-dev.js:23096:41 createChild ReactNativeRenderer-dev.js:9370:47 reconcileChildrenArray ReactNativeRenderer-dev.js:9735:35 reconcileChildren ReactNativeRenderer-dev.js:12970:43 updateFragment ReactNativeRenderer-dev.js:13299:19 invokeGuardedCallbackImpl ReactNativeRenderer-dev.js:286:4 invokeGuardedCallback ReactNativeRenderer-dev.js:497:2 beginWork$$1 ReactNativeRenderer-dev.js:22028:27 performUnitOfWork ReactNativeRenderer-dev.js:20871:23 workLoopSync ReactNativeRenderer-dev.js:20848:38 performSyncWorkOnRoot ReactNativeRenderer-dev.js:20456:22 performSyncWorkOnRoot [native code]:0 runWithPriority$argument_1 ReactNativeRenderer-dev.js:5703:31 unstable_runWithPriority scheduler.development.js:818:23 flushSyncCallbackQueueImpl ReactNativeRenderer-dev.js:5698:21 flushSyncCallbackQueue ReactNativeRenderer-dev.js:5686:28 scheduleUpdateOnFiber ReactNativeRenderer-dev.js:19845:30 dispatchAction ReactNativeRenderer-dev.js:11880:16 dispatchAction [native code]:0 lerFotos feed.js:4:12 tryCatch runtime.js:45:36 invoke runtime.js:274:29 tryCatch runtime.js:45:36 invoke runtime.js:135:27 PromiseImpl.resolve.then$argument_0 runtime.js:145:18 tryCallOne core.js:37:13 setImmediate$argument_0 core.js:123:24 callTimer JSTimers.js:135:14 callImmediatesPass JSTimers.js:183:16 callImmediates JSTimers.js:446:30 callImmediates [native code]:0 _callImmediates MessageQueue.js:396:6 __guard$argument0 MessageQueue.js:144:6 __guard MessageQueue.js:373:10 flushedQueue MessageQueue.js:143:4 flushedQueue [native code]:0 invokeCallbackAndReturnFlushedQueue [native code]:0

1 resposta
solução!

Resolvido faltou add o <FlatList