Check out example codes for "new line in google sheet cell". It will help you in understanding the concepts better.

Code Example 1

Edit data in a cell
Open a spreadsheet in Google Sheets.
Click a cell that's empty, or double-click a cell that isn't empty.
Start typing.
Optional: To add another line within a cell, press Ctrl + Enter on Windows.
When you're done, press Enter.

Learn ReactJs, React Native from akashmittal.com