Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Invalid prop textStyle of type array supplied to Cell, expected object. #153

Open
techiekarthick opened this issue Dec 16, 2022 · 2 comments

Comments

@techiekarthick
Copy link

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 ?

@Eli-Levi
Copy link

We encountered the same issue, the fix is this:

  1. Go to components/cell.js
  2. Change line 8 from textStyle: PropTypes.object, to textStyle: PropTypes.array,

@dohooo
Copy link
Owner

dohooo commented Apr 28, 2023

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants