-
Notifications
You must be signed in to change notification settings - Fork 566
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning : Failed child context type: Invalid child context 'virtualizedCell.cellKey' of type 'number' supplied to 'CellRenderer', expected 'string' #125
Comments
I have this issue as well, and am unsure how to proceed. Thanks in advance! |
Same issue |
+1 |
You need to create an issue in the Just cast the key to string within the _keyExtractor = (item, index) => index.toString(); |
@jalooc I modified the line on my project (on my local version of the PdfView.js) and rerun the app and the problem is still the same. |
@jalooc is right React-native is expecting String keys, you can use transform function to convert it easily :
just make sure that you have string based keys passed to <List** |
My bad, by adding the toString() on my part of the code it did remove the warning. Thanks a lot |
So |
This seems a update of react-native's new version, the |
This warning message should be improved. |
@feliperaul warning message is fine it clearly says its received a number when it should be receiving a string |
how can i fix this one |
Same issue as here: wonday/react-native-pdf#125
You can fix that with other way Before After Only add '' to your string, this resolve to me |
HI, I am currently using :
"react": "16.2.0"
"react-native": "0.53.0"
I created a brand new project and added the react-native-pdf, the app launch well and the pdf is shown no problem for that but I get the following warning. :
my code is a simple copy and paste of yours :
Maybe I missed a step or is that an issue ?
Thanks a lot.
Best regards.
The text was updated successfully, but these errors were encountered: