react-native-expandable-section-flatlist
react-native-expandable-section-flatlist copied to clipboard
I am getting this error
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
Same error here..Is it resolved..?
Remove getItemLayout Flatlist in index.js of this library, because "return { length: offset / index, offset: offset, index };" and index=0 it cause errors.
@tronglv92 thanks
commented the section of getItemLayout function then it worked.