Posts

Showing posts with the label basics

React Native - Basics

Image
Hey Guys!! Good Day!! In previous post , we have done installation and setup for React Native. Today, Let's learn some basics of React Native. Basically, React Native uses Android and IOS device's native components instead of using <div>, <span>, etc in WebView to design UI like other cross platforms. To use the Components, we have to know stuffs like Props and State first. Props and State: Props is nothing but that can be changed dynamically in a Component. Whereas, State can be referred as triggering method, which is used to update or refresh values in a Component. Each time when setState() method is calling , the render function of that Component will also be called simultaneously. Let's learn about it with example. Props: React Native Components have default Props. Also we can create custom props for our own Components. <Image  source={       {uri:'https://encrypted-tbn0.gstatic.com/images?                   q=tbn:ANd9GcSVBDn