<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vishesh Kumar</title>
    <description>The latest articles on DEV Community by Vishesh Kumar (@kukdoku).</description>
    <link>https://dev.to/kukdoku</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F661934%2F6965fdab-6cce-4156-8531-957d3c2606fa.png</url>
      <title>DEV Community: Vishesh Kumar</title>
      <link>https://dev.to/kukdoku</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kukdoku"/>
    <language>en</language>
    <item>
      <title>CSS Positioning</title>
      <dc:creator>Vishesh Kumar</dc:creator>
      <pubDate>Thu, 14 Oct 2021 06:47:38 +0000</pubDate>
      <link>https://dev.to/kukdoku/css-positioning-2og9</link>
      <guid>https://dev.to/kukdoku/css-positioning-2og9</guid>
      <description>&lt;p&gt;In CSS Positioning of elements is very important topic. CSS having five type of Positioning method&lt;/p&gt;

&lt;p&gt;&lt;em&gt;1. static&lt;/em&gt;&lt;br&gt;
&lt;em&gt;2. relative&lt;/em&gt;&lt;br&gt;
&lt;em&gt;3. fixid&lt;/em&gt;&lt;br&gt;
&lt;em&gt;4. absolute&lt;/em&gt;&lt;br&gt;
&lt;em&gt;5. sticky&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Static&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;default form of HTML&lt;/li&gt;
&lt;li&gt;Do not have any specific styling&lt;/li&gt;
&lt;li&gt;We can not use &lt;em&gt;top, bottom, left, right&lt;/em&gt; with static positioning&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fskpxwx2f58cf0li2ggqs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fskpxwx2f58cf0li2ggqs.png" alt="Link"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;relative&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Give affect relative to its normal position.&lt;/li&gt;
&lt;li&gt;Normally No element can occupy its position.
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1fr62dtet46o0929d7eg.png" alt="CSS relative property Demonstration"&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Fixed&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;give affect relative to view port.&lt;/li&gt;
&lt;li&gt;It always occupy the same place unless page is scroll.&lt;/li&gt;
&lt;li&gt;top, bottom, left, right can be used with it&lt;/li&gt;
&lt;li&gt;Normally other element occupy blank space which it left&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxs6xnzpbsvyr9d0drtkb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxs6xnzpbsvyr9d0drtkb.png" alt="CSS Fixed property Demonstration"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Absolute&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;relative to the nearest positioned ancestor(instead of positioned relative to the viewport, like fixed).&lt;/li&gt;
&lt;li&gt;It move along the scroll&lt;/li&gt;
&lt;li&gt;if there are no ancestor exits it used document body&lt;/li&gt;
&lt;li&gt;space left by element is fulfilled by another element.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdp465aeh18bvjt280daf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdp465aeh18bvjt280daf.png" alt="CSS Absolute Property Demonstration"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Sticky&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;position based on the scroll&lt;/li&gt;
&lt;li&gt;element toggle between relative and fixed&lt;/li&gt;
&lt;li&gt;Element perform like relative property until viewport does not match then perform as fixed&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx42jv6cfsp9ulskdb7w7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx42jv6cfsp9ulskdb7w7.png" alt="CSS Absolute Property Demonstration"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;All the positioning property is applied as:&lt;/p&gt;

&lt;p&gt;.className or #Id or tag {&lt;br&gt;
   positon: ProperyName; fixed);&lt;br&gt;
}&lt;br&gt;
PropertyName: static OR relative OR absolute OR sticky&lt;/p&gt;

&lt;p&gt;Thanks for Reading...&lt;br&gt;&lt;br&gt;
By Tech 9-on&lt;/p&gt;

</description>
      <category>css</category>
      <category>webdev</category>
      <category>frontend</category>
      <category>programming</category>
    </item>
    <item>
      <title>Complete React Native one View</title>
      <dc:creator>Vishesh Kumar</dc:creator>
      <pubDate>Tue, 13 Jul 2021 01:54:50 +0000</pubDate>
      <link>https://dev.to/kukdoku/complete-react-native-one-view-55kl</link>
      <guid>https://dev.to/kukdoku/complete-react-native-one-view-55kl</guid>
      <description>&lt;p&gt;React Native is a great javaScript library in which we can make android, ios mobile app with a single code base. Here i will explain all the basic concept for learning react native. This will be a brief introduction of all the topics of react native.&lt;/p&gt;

&lt;h2&gt;
  
  
  Install of React-native-cli
&lt;/h2&gt;

&lt;p&gt;first we will see how we can install the react-native in your system. We will work react-native-cli in the whole article.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install -g expo-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create React Native App
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;expo init firstProject
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Run React Native App
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;expo start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Basic Components of react Native
&lt;/h2&gt;

&lt;p&gt;Here we will describe some of the basics components of react native like &lt;em&gt;View, Text, Image, TextInput, ScrollView, StyleSheet&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;View&lt;/strong&gt;&lt;br&gt;
View in react native is div like tag. View is the fundamental component for building UI. View is the container that supports layout with flexbox, style, touch handling and accessibility.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from "react";
import { View, Text } from "react-native";

const ViewShow = () =&amp;gt; {
  return (
    &amp;lt;View&amp;gt;
      &amp;lt;View&amp;gt;
      &amp;lt;Text&amp;gt;Box One&amp;lt;/Text&amp;gt;
      &amp;lt;/View&amp;gt;
      &amp;lt;View &amp;gt;&amp;lt;Text&amp;gt;Hello World!&amp;lt;/Text&amp;gt;&amp;lt;/View&amp;gt;

    &amp;lt;/View&amp;gt;
  );
};

export default ViewShow;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Text&lt;/strong&gt;&lt;br&gt;
Text support nesting, styling, and touch handling. text show the written content on the app.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return (
    &amp;lt;View&amp;gt;

      &amp;lt;Text&amp;gt;welcome to stupid Progrmmer &amp;lt;/Text&amp;gt;
      &amp;lt;Text&amp;gt;Thanks for reading &amp;lt;/Text&amp;gt;

    &amp;lt;/View&amp;gt;
  );
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Image&lt;/strong&gt;&lt;br&gt;
In react native we can show image with the help of uri &amp;amp; require&lt;br&gt;
uri -&amp;gt; for url&lt;br&gt;
require -&amp;gt; for system image&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;return(
&amp;lt;View&amp;gt;
&amp;lt;Image source = {{uri:'https://pbs.twimg.com/profile_images/486929358120964097/gNLINY67_400x400t.png'}}
   style = {{ width: 200, height: 200 }}
   /&amp;gt;
&amp;lt;Image source = {require('C:/Users/MyDir/Desktop/NativeImage/logo.png')} /&amp;gt;
&amp;lt;/View&amp;gt;
);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;TextInput&lt;/strong&gt;&lt;br&gt;
React Native provide well defined method to take text as an input through touchable keypad.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import React from "react";
import { SafeAreaView, StyleSheet, TextInput } from "react-native";

const TextInputExample = () =&amp;gt; {
  const [text, onChangeText] = React.useState("Useless Text");


  return (
    &amp;lt;SafeAreaView&amp;gt;
      &amp;lt;TextInput
        style={styles.input}
        onChangeText={onChangeText}
        value={text}
        placeholder="write some text"
      /&amp;gt;

    &amp;lt;/SafeAreaView&amp;gt;
  );
};

const styles = StyleSheet.create({
  input: {
    height: 40,
    margin: 12,
    borderWidth: 1,
  },
});

export default TextInputExample;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;React Natve also provide some basic keypad type functionality like numeric keypad, email-address, default and many more&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>completereactnative</category>
      <category>javascript</category>
      <category>mobileappdevelopment</category>
    </item>
  </channel>
</rss>
