Text strings must be rendered within a <Text> component #2144
-
|
I am getting some kind of error while using this component. Kindly see the screenshot for error detail. Below is the code which I'm using. --------Installed Component------------- export default class DataTable3 extends Component { } |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
|
Looks like you're using react-native, in which case you will need to override the default Cell renderer for your tables to use the Text component wrapper. |
Beta Was this translation helpful? Give feedback.
-
|
maybe you should use this one for react-native table: https://github.com/meliorence/react-native-render-html |
Beta Was this translation helpful? Give feedback.
-
|
Posted a basic example with sorting here - hope it helps someone! |
Beta Was this translation helpful? Give feedback.
-
|
I found this solution. this is for the body this is for the header |
Beta Was this translation helpful? Give feedback.

Looks like you're using react-native, in which case you will need to override the default Cell renderer for your tables to use the Text component wrapper.