react-native-expandable-section-flatlist icon indicating copy to clipboard operation
react-native-expandable-section-flatlist copied to clipboard

I am getting this error

Open jassimkm opened this issue 6 years ago • 3 comments

Invariant Violation: [399,"RCTView",1,{"height":"<<-Infinity>>"}] is not usable as a native method argument

This error is located at: in RCTView (at View.js:45) in View (at VirtualizedList.js:871) in RCTScrollContentView (at ScrollView.js:873) in RCTScrollView (at ScrollView.js:1002) in ScrollView (at VirtualizedList.js:1061) in VirtualizedList (at FlatList.js:625) in FlatList (at react-native-expandable-section-flatlist/index.js:149) in ExpandableList (at App.js:28) in App (at renderApplication.js:34) in RCTView (at View.js:45) in View (at AppContainer.js:98) in RCTView (at View.js:45) in View (at AppContainer.js:115) in AppContainer (at renderApplication.js:33)

enqueueNativeCall index.bundle?platform=ios&dev=true&minify=false:2392:20 fn index.bundle?platform=ios&dev=true&minify=false:2005:40 createInstance index.bundle?platform=ios&dev=true&minify=false:13168:29 completeWork index.bundle?platform=ios&dev=true&minify=false:19512:48 completeUnitOfWork index.bundle?platform=ios&dev=true&minify=false:21531:44 performUnitOfWork index.bundle?platform=ios&dev=true&minify=false:21694:36 workLoop index.bundle?platform=ios&dev=true&minify=false:21704:47 renderRoot index.bundle?platform=ios&dev=true&minify=false:21775:21 performWorkOnRoot index.bundle?platform=ios&dev=true&minify=false:22493:23 performWork index.bundle?platform=ios&dev=true&minify=false:22420:30 performSyncWork index.bundle?platform=ios&dev=true&minify=false:22396:20 requestWork index.bundle?platform=ios&dev=true&minify=false:22275:26 scheduleWork index.bundle?platform=ios&dev=true&minify=false:22147:22 enqueueSetState index.bundle?platform=ios&dev=true&minify=false:16478:23 setState index.bundle?platform=ios&dev=true&minify=false:7111:37 _updateCellsToRender index.bundle?platform=ios&dev=true&minify=false:53744:23 index.bundle?platform=ios&dev=true&minify=false:54815:28 processNext index.bundle?platform=ios&dev=true&minify=false:50365:19 _processUpdate index.bundle?platform=ios&dev=true&minify=false:50269:31 _callTimer index.bundle?platform=ios&dev=true&minify=false:26176:17 _callImmediatesPass index.bundle?platform=ios&dev=true&minify=false:26212:19 callImmediates index.bundle?platform=ios&dev=true&minify=false:26431:33 __callImmediates index.bundle?platform=ios&dev=true&minify=false:2462:35 index.bundle?platform=ios&dev=true&minify=false:2283:34 __guard index.bundle?platform=ios&dev=true&minify=false:2445:15 flushedQueue index.bundle?platform=ios&dev=true&minify=false:2282:21

jassimkm avatar Feb 05 '19 08:02 jassimkm

Same error here..Is it resolved..?

AfreenShaik1206 avatar Feb 19 '19 12:02 AfreenShaik1206

Remove getItemLayout Flatlist in index.js of this library, because "return { length: offset / index, offset: offset, index };" and index=0 it cause errors.

tronglv92 avatar Mar 25 '19 06:03 tronglv92

@tronglv92 thanks

commented the section of getItemLayout function then it worked.

raikk avatar Jul 16 '19 08:07 raikk