React Native
What is React Native?
1)React Native is an open-source framework for building mobile applications using JavaScript and React.
2) It allows developers to use React, a popular JavaScript library for building user interfaces, to create native mobile applications for iOS and Android platforms.
What is the Use of the React Native?
1)We can build Mobile Application for both Andoid and IOS in Single Codebase
What to learn for React Native
1)To learn React Native we have to learn HTML,CSS,JAVA SCRIPT AND REACT BASICS
Required to Start the React Native Project
1)Node and npm
2)Vs Code and Android Studio for running the Project
Creating a Project
To Create the React native Project we should follow Some Commands
1)npx react-native init MyApp
this command will initilize the basic environment setup and then
2)cd MyApp
3)npx react-native run-android
this command will run the program
Android Studio initilize
After downloading and setup in android studio we should import the android file in Android studio and then we should create Device Manager for running the Device and then run in the android simulator
BASIC COMPONENTS OF REACT NATIVE
There are Serval Basic Components in React Native
1)View
2)Text
3)TextInput
4)Image
5)Stylesheet
6)ScrollView
VIEW COMPONENT
1)Its a building block of the element without VIEW Component we cannot Style the UI
TEXT COMPONENT
1) Text Component is used for Displaying the Text in the UI
TEXTINPUT COMPONENT
1)It is used to Type the Text in the UI Component
2)It is mainly user in the Login form and forms
IMAGE COMPONENT
1)Image Component is used to Display Image in UI Application
2) We can Display our Image and also NETWORK Image also
STYLESHEET COMPONENT
1)It is act as a CSS in Mobile Application.We can Change style and font color and font icon by using Stylesheet
SCROLLVIEW COMPONENT
1)ScrollView in React Native provides a scrollable container for content, allowing users to view and interact with larger datasets easily.