br in react native 1

br in react native

you need use {'\n'} as line breaks in text component, whenever you need to add line break in react native application

Here is what the above code is Doing:
1. We are importing the Text component from react-native library.
2. We are creating a new component named MyApp.
3. We are returning a Text component.
4. We are using the Text component to display some text.
5. We are using the AppRegistry to register our MyApp component.
6. We are using the AppRegistry to run our MyApp component.

Similar Posts