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

Code Example 1

new line/<br> type action in url?
Use %0A in a URL where you might use %20 instead of the space character

Learn ReactJs, React Native from akashmittal.com