react-native-table-component
react-native-table-component copied to clipboard
Invalid prop textStyle of type array supplied to Cell, expected object.
ERROR Warning: Failed prop type: Invalid prop textStyle of type array supplied to Cell, expected object.
I'm facing same issue at this version "react-native-table-component": "^1.2.2";
const rowTextStyle = { color: 'red' }; textStyle={rowTextStyle}
Anybody know the answer ? I'm giving object only.. why it showing again expected object ?
We encountered the same issue, the fix is this:
- Go to components/cell.js
- Change line 8 from
textStyle: PropTypes.object,totextStyle: PropTypes.array,
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.