'How to add new line while retrieving text data from firebase's firestore db using react native?

test: "Hello \n World" (firestore db)

Expected output:

Hello

World

Actual output: Hello \n World



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source