NA +91-8727899942 thecoderjob@gmail.com

CHAPTER - 6

What is JSX in react native

JSX stands for JavaScript XML. 

In the example above, <View> and <Text> are JSX elements representing React Native components. The style prop is used to apply styles to the components. Inside the <View> component, there's a <Text> component displaying the text "Hello, React Native!".

Here's is the Code !!

import React from 'react';
import { View, Text } from 'react-native';

const App = () => {
  return (
    <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
      <Text>Hello, React Native!</Text>
    </View>
  );
};

export default App;

Chapter 5

Basics of View, Text and Button UI example in react native

Previous chapter

Chapter 7

What is component in react native.

Next chapter

Get In Touch

NA

thecoderjob@gmail.com

+91-8727899942

Popular Links

© www.thecoderjob.com. All Rights Reserved.               Designed by HTML Codex