Is it possible to add more than one line for a particular DataTable Cell?
See original GitHub issueProblem
Hello, I’ve been using react-native-paper for the past month with satisfying results, but now I am stumbled on a particular use case. I have a DataTable.Cell that needs to show more than one line at a time (imagine a list of food ingredients). Is this possible within the current version?
Approaches
I tried to append line breaks without result. I also insert a Text with a numberOfLines attribute set to more than one but nothing happened as well. Inspecting the source code for DataTable.Cell , I found that there is a numberOfLines set to one by default , so I was wondering if that is the cause, because when I change the underlying Text Component on the debugger, it will show appropriately.

Thanks in advance
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
multiple data in single cell — DataTables forums
i need to insert multiple data one below other in single cell of column how to achieve it?
Read more >Multiple values in the same cell datatable c# - Stack Overflow
These values seem to be seperated by \n. A datatable can only hold one value per cell, you can append the values like...
Read more >How to add new value (data row) in existing Datatable? - Help
Use add data row with arrow property as {} - ie you are adding a blank row. Use assign add value to the...
Read more >Data table control in Power Apps - Microsoft Learn
A single row is always selected in a Data table control. Link a Data table control to a connected or local data source....
Read more >Sizing and Resizing of DataTable, Configuration Webix Docs
There can be more than one fillspace in the datatable. You can set fillspace as a number. The width of the table will...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@jota12x
DataTable.Cellis aViewwith just some styles to make it MD Guidelines compliant, but nothing fancy. If you need to make it multiline then useViewinstead.Could you submit a PR adding this information to the DataTable.Cell docs? That would be awesome 🙏
https://github.com/callstack/react-native-paper/issues/1038#issuecomment-1186243530