-
Notifications
You must be signed in to change notification settings - Fork 189
Warning: Failed prop type: Invalid prop textStyle
of type array
supplied to Cell
, expected object
.
#145
Comments
Inside Rows.js line 29:
UPDATE: After a little more research, I don't think the above will work when there is a
That properly extends the object. (But it makes we question which should go first to override the other...?) And then, in the
|
i have a same problem as well, only on IOS but on android it works fine. Even i removed the textStyle it gives me an error warning. "react-native": "0.67.3", |
@Moglie2817 for now you can simply update your
You should be able to just |
Thank you! Works. |
Not solved for me. Same error. |
Ok then |
this issue still exist. |
I downgraded the version to |
Still happening, even in the version 1.2.0 |
Trying this, and I get a new error when I try to run my jest tests:
Looks like the import changed from:
to:
which breaks the package. I also see a PR slice312#1 that fixes the import. Can this PR please be merged in so this package is fixed? Thanks. |
This repo is definitely abandoned, to solve this problem temporarily you can use my recent fork where only this problem is solved. following this medium post you can simply do:
and possibly and resolve the warning in seconds 🎉 The fix was changing the code of line 29 from:
to:
I use this same fix in another repo not so long ago and it work well 🤷 |
@sturmenta I have the same problem, and I fix it with your fork. Thank you !! |
ERROR Warning: Failed prop type: Invalid prop I'm facing same issue at this version "react-native-table-component": "^1.2.2"; const rowTextStyle = { color: 'red' }; Anybody know the answer ? I'm giving object only.. why it showing again expected |
hello @techiekarthick, could you take a look at this comment? #145 (comment) |
Hey, I had rewrote it in typescript and I'll optimizing it in react-native-reanimated. react-native-reanimated-table 🌴 BTW these problems are solved. |
Warning: Failed prop type: Invalid prop
textStyle
of typearray
supplied toCell
, expectedobject
.Cell
in Row (created by App)
in RCTView (created by View)
in View (created by Table)
in Table (created by App)
in RCTView (created by View)
in View (created by App)
in App (created by ExpoRoot)
in ExpoRoot
in RCTView (created by View)
in View (created by AppContainer)
in RCTView (created by View)
in View (created by AppContainer)
in AppContainer
The text was updated successfully, but these errors were encountered: