1.

Name core Components in React Native and the analogy of those components when compared with the web .

Answer»

The core components used in React NATIVE are <View> , <Text> , <Image> , <ScrollView> , <TextInput>

And analogy when compared Web can be explained by below diagram:

REACT NATIVE UI COMPONENTANDROID VIEWIOS VIEWWEB ANALOGDESCRIPTION
<View><ViewGroup><UIView>A non-scrolling <DIV>A container that supports layout with flexbox style, some touch handling, and accessibility controls.
<Text><TextView><UITextView><p>Displays, styles, and nests STRINGS of text and EVEN handles touch events.
<Image><ImageView><UIImageView><img>Displays different types of images
<ScrollView><ScrollView><UIScrollView><div>A generic scrolling container that can contain multiple components and views.
<TextInput><EditText><UITextField><input type="text">Allows the USER to enter text


Discussion

No Comment Found