Warning: Failed child context type: Invalid child context ‘virtualizedCell.cellKey’ of type ‘number’ supplied to ‘CellRenderer’, expected ‘string’

React Native Flat List or ActionSheet requires id to be string-type. Therefore you need to change integer type to string type:

Change

keyExtractor={item => item.id}

to

keyExtractor={item => item.id.toString()}

Written by

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store