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

Cing Sian Dal
1 min readFeb 1, 2020

--

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()}

--

--

Cing Sian Dal

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