<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by MahYar on Medium]]></title>
        <description><![CDATA[Stories by MahYar on Medium]]></description>
        <link>https://medium.com/@mahyarmohammadi?source=rss-9b5580bc0676------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*K_w3tZIpZltTONCdktQwtA.jpeg</url>
            <title>Stories by MahYar on Medium</title>
            <link>https://medium.com/@mahyarmohammadi?source=rss-9b5580bc0676------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 09:06:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mahyarmohammadi/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[AWS Cloud Practitioner vs. Google Cloud Digital Leader vs. Microsoft Azure Fundamentals]]></title>
            <link>https://medium.com/swlh/aws-cloud-practitioner-vs-google-cloud-digital-leader-db2d333e6426?source=rss-9b5580bc0676------2</link>
            <guid isPermaLink="false">https://medium.com/p/db2d333e6426</guid>
            <category><![CDATA[cloud-digital-leader]]></category>
            <category><![CDATA[aws-cloud-practitioner]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[MahYar]]></dc:creator>
            <pubDate>Sat, 20 Nov 2021 13:42:22 GMT</pubDate>
            <atom:updated>2022-01-07T05:31:19.014Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Five Points to Know</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R0mNpTsWJYuFh-xKoig0wQ.png" /><figcaption>AWS Cloud Practitioner vs. Google Cloud Digital Leader vs. Microsoft Azure Fundamentals</figcaption></figure><p>You might find the following hints useful if you want to demonstrate competence and obtain a competitive advantage in the job market, or if you want to be certified to prove a core knowledge and level of skills regarding AWS Cloud Practitioner, Google Cloud Digital Leader, or Microsoft Azure Fundamentals.</p><h3>Five Points</h3><h4>1. Comparison</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/687/1*2ZbwBGv_4M72mrWrWSfA3Q.png" /><figcaption>AWS Cloud Practitioner vs. Google Cloud Digital Leader vs. Microsoft Azure Fundamentals</figcaption></figure><h4>2. Which one first?</h4><p>👉 <a href="https://aws.amazon.com/certification/certified-cloud-practitioner/">AWS Cloud Practitioner</a>.<br>If you wish to pass all three exams, start with the AWS Cloud Practitioner, next, <a href="https://docs.microsoft.com/en-us/learn/certifications/exams/az-900">Microsoft Azure Fundamentals</a>, and then apply for the <a href="https://cloud.google.com/certification/cloud-digital-leader">Google Cloud Digital Leader</a> exam, based on my recent experience (January 2022).<br>The reason is the Google Cloud Digital Leader exam is the most demanding one.</p><h4>3. Exam Content</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84083AJ4Wcci2eSUMX_jSQ.png" /><figcaption>AWS Cloud Practitioner vs. Google Cloud Digital Leader vs. Microsoft Azure Fundamentals</figcaption></figure><h4>4. What to read?</h4><p>I consider two resource categories:<br>🔹 <em>Mandatory</em>: Necessary to pass the exam.<br>🔸 <em>Optional</em>: For deepening your knowledge.</p><p><strong>AWS Cloud Practitioner:<br></strong><em>Mandatory:<br></em>🔹 <a href="https://www.coursera.org/learn/aws-cloud-practitioner-essentials">AWS Cloud Practitioner Essentials</a>, <a href="https://www.coursera.org/">Coursera</a>, One-week free trial.<br>🔹 <a href="https://d1.awsstatic.com/training-and-certification/docs-cloud-practitioner/AWS-Certified-Cloud-Practitioner_Sample-Questions.pdf">Sample question</a>, <a href="https://aws.amazon.com/">AWS</a>, Free.<br>🔹 <a href="https://digitalcloud.training/courses/aws-ccp-practice-exams/">AWS Certified Cloud Practitioner Practice Exams-500 Practice Questions</a>, <a href="https://digitalcloud.training/">Digital Cloud</a>, 14.99$.</p><p><em>Optional:<br></em>🔸 <a href="https://www.udemy.com/course/aws-certified-cloud-practitioner-new/">Ultimate AWS Certified Cloud Practitioner</a>, <a href="https://www.udemy.com/">Udemy</a>, 9.99€.</p><p><strong>Google Cloud Digital Leader:<br></strong><em>Mandatory:<br></em>🔹 <a href="https://www.coursera.org/professional-certificates/google-cloud-digital-leader-training">Google Cloud Digital Leader Training Professional certificate</a>, <a href="https://www.coursera.org/">Coursera</a>, One-week free trial.<br>🔹 <a href="https://www.exampro.co/gcp-cdl">Google Cloud Digital Leader</a>, <a href="https://www.exampro.co/">Exam Pro</a>, 21$.</p><p><em>Optional:<br></em>🔸 <a href="https://youtu.be/UGRDM86MBIQ">Google Cloud Digital Leader Certification Course</a>, <a href="https://www.freecodecamp.org/">FreeCodeCamp</a>, Free.<br>🔸 <a href="https://www.udemy.com/course/google-cloud-certified-cloud-digital-leader-practice-tests/?referralCode=1E7FA94F29E3481F9767">Google Cloud Certified Cloud Digital Leader Practice Tests</a>, <a href="https://www.udemy.com/">Udemy</a>, 9.99$.</p><p><strong>Microsoft Azure Fundamentals:<br></strong><em>Mandatory:<br></em>🔹 <a href="https://www.coursera.org/specializations/microsoft-azure-fundamentals-az-900">Microsoft Azure Fundamentals AZ-900 Exam Prep Specialization</a>, <a href="https://www.coursera.org/">Coursera</a>, One-week free trial.<br>🔹 <a href="https://www.udemy.com/course/microsoft-azure-az-900-certification-exam-practice-tests/">AZ-900: Microsoft Azure Fundamentals Practice Tests</a>, <a href="https://www.udemy.com/">Udemy</a>, 9.99€.</p><p><em>Optional:<br></em>🔸 <a href="https://www.udemy.com/course/az900-azure/">AZ-900: Microsoft Azure Fundamentals Exam Prep</a>, <a href="https://www.udemy.com/">Udemy</a>, 9.99€.</p><h4>5. How long?</h4><p>It depends on your skill level and experience. In my opinion, for a beginner:<br>⏳ AWS Cloud Practitioner: 70 hours.<br>⏳ Google Cloud Digital Leader: 120 hours.<br>⏳ Microsoft Azure Fundamentals: 100 hours.</p><h4>Why?</h4><p>💎 <a href="https://aws.amazon.com/certification/certified-cloud-practitioner/">AWS Cloud Practitioner</a>: This credential helps organizations to identify and develop talent with critical knowledge related to implementing cloud initiatives. Earning AWS Certified Cloud Practitioner validates cloud fluency and foundational AWS knowledge.<br>💎 <a href="https://cloud.google.com/certification/cloud-digital-leader">Google Cloud Digital Leader</a>: Distinguishing and evaluating the various capabilities of Google Cloud core products and services.<br>💎 <a href="https://docs.microsoft.com/en-us/learn/certifications/exams/az-900">Microsoft Azure Fundamentals</a>: Proving the knowledge of cloud concepts, Azure services, Azure workloads, security and privacy in Azure, as well as Azure pricing and support.</p><h4>Final remarks</h4><p>I prepared for AWS Cloud Practitioner for approximately a week and was able to pass the test on the first try.<br>After that, I spent nearly a week studying for the Google Cloud Digital Leader test, which I failed on the first attempt. Then I had to wait two weeks for the next exam, which I was able to pass.<br>Finally, It took about two weeks to get ready for the Microsoft Azure Fundamentals exam. I passed the exam on the first try, score: 880/1000.</p><p>The information is based on my own personal experience. Please let me know if you come across any more helpful materials.</p><p>Please feel free to share your story in the comments section.</p><p>Happy Learning! 👨‍💻👩‍💻</p><h4>My background</h4><p>Experienced in <a href="https://reactnative.dev/">React-Native</a>, <a href="https://reactjs.org/">React.js</a>, and <a href="https://nextjs.org/">Next.js</a>, I graduated in Software Engineering MSc from <a href="https://www.lut.fi/web/en/">LUT</a>, Finland.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db2d333e6426" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/aws-cloud-practitioner-vs-google-cloud-digital-leader-db2d333e6426">AWS Cloud Practitioner vs. Google Cloud Digital Leader vs. Microsoft Azure Fundamentals</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Accessibility in React Native Full Guide 2020]]></title>
            <link>https://medium.com/swlh/accessibility-in-react-native-full-guide-2020-8459bdfbe25d?source=rss-9b5580bc0676------2</link>
            <guid isPermaLink="false">https://medium.com/p/8459bdfbe25d</guid>
            <category><![CDATA[accessibility]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[android]]></category>
            <category><![CDATA[mobile-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[MahYar]]></dc:creator>
            <pubDate>Sun, 18 Oct 2020 06:55:46 GMT</pubDate>
            <atom:updated>2020-10-18T06:55:46.120Z</atom:updated>
            <content:encoded><![CDATA[<h4>Accessibility Properties, Part 1</h4><figure><img alt="React Native accessibility properties" src="https://cdn-images-1.medium.com/max/1024/1*60sPwDMgGw26I9_sKdu-0w.png" /><figcaption>React Native accessibility properties</figcaption></figure><p>Mobile accessibility deals with the design and creation of the websites and applications that can be used by disabled people when they are using mobile phones, and tablets.</p><p>In this series, I cover the following React Native accessibility topics:</p><p>Part 1: Accessibility properties.</p><p>Part 2: Accessibility actions and testing.</p><p>Part 3: Building your first Accessibility app.</p><p><strong>Part 1: Accessibility Properties</strong></p><p>The React Native accessibility APIs integrate the apps with assistive technologies such as screen readers VoiceOver (iOS) and TalkBack (Android).</p><p><strong><em>Common properties (Android &amp; iOS)</em></strong></p><p><strong>accessible</strong></p><p>It demonstrates that the view is an accessibility element that groups the children components into a single selectable component.</p><p><em>Type: boolean</em></p><pre>accessible={true}</pre><p><strong>accessibilityLabel</strong></p><p>It is read by the screen reader when a user selects the related element. It is set for View, Text, or Touchable components.</p><p><em>Type: string</em></p><pre>accessibilityLabel = ”I am the accessibility label.”</pre><p><strong>accessibilityHint</strong></p><p>It helps users understand what the action result is.</p><p><em>Type: string</em></p><pre>accessibilityHint = ”I am the accessibility Hint”</pre><p><strong>accessibilityRole</strong></p><p>It tells the user the purpose of a component.</p><p>accessibilityRole’s value can be: <em>adjustable</em>, <em>alert</em>, <em>button</em>, <em>checkbox</em>, <em>header</em>, <em>image</em>, <em>imageButton</em>, <em>keyboardkey</em>, <em>link</em>, <em>menu</em>, <em>menubar</em>, <em>menuitem</em>,<em> none</em>, <em>progressbar</em>, <em>radio</em>, <em>radiogroup</em>, <em>scrollbar</em>, <em>spinbutton</em>, <em>summary</em>, <em>switch</em>, <em>tab</em>, <em>tablist</em>, <em>text</em>, <em>timer</em>, <em>toolbar</em>.</p><p><em>Type: string</em></p><pre>accessibilityRole = “alert”</pre><p><strong>accessibilityState</strong></p><p>It describes the current state of the component to the user.</p><p><em>Type: boolean or ‘mixed’</em></p><p>Its value can be: <em>disabled</em>, <em>selected</em>, <em>checked</em>, <em>busy</em>, <em>expanded</em>.</p><p><strong>accessibilityValue</strong></p><p>It represents the current value of the component.</p><p><em>Type: integer or string</em></p><p>Its value can be: <em>min</em>, <em>max</em>, <em>now</em>, <em>text</em>.</p><p><strong>onAccessibilityTap</strong></p><p>It assigns a custom function to an accessible element that will be called when the user tapped double on the element.</p><p><strong><em>Android Properties</em></strong></p><p><strong>accessibilityLiveRegion</strong></p><p>It alerts the user when the components change dynamically.</p><p><em>Type: string</em></p><p>The value can be: <em>none</em>, <em>polite</em>, <em>assertive</em>.</p><pre>accessibilityLiveRegion= ”polite”</pre><p><strong>importantForAccessibility</strong></p><p>It resolves the default accessibility focus issue for the overlapping UI components with the same parent.</p><p><em>Type: string</em></p><p>The value can be: <em>auto</em>, <em>yes</em>, <em>no</em>, <em>no-hide-descendants</em>.</p><pre>ImportantForAccessibility= “no-hide-descendants”</pre><p><strong><em>iOS Properties</em></strong></p><p><strong>accessibilityIgnoresInvertColors</strong></p><p>It makes the iPhone and iPad easier on the eyes for: People with a sensitivity to brightness, low vision, and color blindness.</p><p><em>Type: boolean</em></p><p><strong>accessibilityViewIsModal</strong></p><p>It indicates whether the screen reader should ignore the elements.</p><p><em>Type: boolean</em></p><p><strong>accessibilityElementsHidden</strong></p><p>It indicates whether the accessibility elements in this element are hidden.</p><p><em>Type: boolean</em></p><p><strong>onAccessibilityEscape</strong></p><p>It is assigned to the custom function that will be called when the user performs the “escape”* gesture.</p><p><em>Type: function</em></p><p>*escape: two-finger Z shaped gesture.</p><p><strong>onMagicTap</strong></p><p>It is assigned a custom function that will be called when the user performs the “magic tap”* gesture.</p><p><em>Type: function</em></p><p>*magic tap: double-tap with two fingers.</p><figure><img alt="React Native accessibility cheat sheet" src="https://cdn-images-1.medium.com/max/849/1*vQwh48ZOG2au8ucvnt8D_w.png" /><figcaption>React Native Accessibility cheat sheet</figcaption></figure><p>In part 2, I will discuss the Accessibility of Actions and testing.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8459bdfbe25d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/accessibility-in-react-native-full-guide-2020-8459bdfbe25d">Accessibility in React Native Full Guide 2020</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LogBox in React Native]]></title>
            <link>https://medium.com/swlh/logbox-in-react-native-edb4d9ef2b23?source=rss-9b5580bc0676------2</link>
            <guid isPermaLink="false">https://medium.com/p/edb4d9ef2b23</guid>
            <category><![CDATA[logbox]]></category>
            <category><![CDATA[react-native-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[react-native-developers]]></category>
            <category><![CDATA[react-native-app]]></category>
            <dc:creator><![CDATA[MahYar]]></dc:creator>
            <pubDate>Tue, 11 Aug 2020 07:53:54 GMT</pubDate>
            <atom:updated>2020-08-11T07:53:54.540Z</atom:updated>
            <content:encoded><![CDATA[<h4>LogBox, a Completely Redesigned Logging Experience</h4><figure><img alt="React Native LogBox Component" src="https://cdn-images-1.medium.com/max/1024/1*ZFn239r3y6IrghPY7oy-3g.png" /></figure><p><a href="https://reactnative.dev/">React Native 0.63</a> launched <a href="https://reactnative.dev/docs/debugging#logbox"><strong>LogBox</strong></a> as the default logging experience instead of <a href="https://reactnative.dev/docs/0.62/debugging#errors">RedBox</a> and <a href="https://reactnative.dev/docs/0.62/debugging#warnings">YellowBox</a>.</p><p><a href="https://reactnative.dev/blog/#logbox"><strong>LogBox</strong></a><strong> </strong>focuses on three main aspects: Concise, Formatted, and Actionable logs.</p><figure><img alt="React Native LogBox main aspects" src="https://cdn-images-1.medium.com/max/1024/1*qJ0mfpb7_raPTC6X4lbsCw.png" /><figcaption>LogBox main aspects</figcaption></figure><p>Red <strong>LogBox </strong>displays errors in 3 sections: Source, Component Stack, and Call Stack.</p><p>Yellow <strong>LogBox</strong> displays warnings in 2 sections: Source, and Call Stack.</p><figure><img alt="React Native Red and Yellow LogBox" src="https://cdn-images-1.medium.com/max/900/1*xlKO-lcJAeA_6JwCXC5eRA.png" /><figcaption>Red and Yellow LogBox</figcaption></figure><p><a href="https://reactnative.dev/blog/#logbox"><strong>LogBox</strong></a><strong> </strong>contains the following features:</p><ul><li><strong>Log Notification </strong>including warning and errors shows up as notifications at the bottom of the app screen.</li></ul><figure><img alt="React Native LogBox Log Notification sample" src="https://cdn-images-1.medium.com/max/458/1*br3jacBgxqxh2O7ThkA6QA.png" /><figcaption>Log Notification sample</figcaption></figure><ul><li><strong>Code Frame </strong>containing error and warning shows the log source code.</li></ul><figure><img alt="React Native LogBox Code Frames sample" src="https://cdn-images-1.medium.com/max/461/1*KU-Za06PQE81psT7iuwNaA.png" /><figcaption>Code Frames sample</figcaption></figure><ul><li><strong>Component Stacks </strong>are separated from error messages and put into their section.</li></ul><figure><img alt="React Native LogBox Component Stacks sample" src="https://cdn-images-1.medium.com/max/451/1*_TIt_3MldH9R_PbH_lqdDg.png" /><figcaption>Component Stacks sample</figcaption></figure><ul><li><strong>Stack Frames </strong>that are not related to the application’s code, are collapsed by default.</li><li><strong>Syntax Error Formatting</strong> is improved and code frames with highlighted syntax are added.</li></ul><figure><img alt="React Native LogBox Syntax Error Formatting Sample" src="https://cdn-images-1.medium.com/max/469/1*DWFVA_immO8KxPEzwKsSdw.png" /><figcaption>Syntax Error Formatting sample</figcaption></figure><p><strong>Take Away Points </strong>🤓</p><p>Check out the<strong> LogBox</strong> Source section for the compact info about the error or warning.</p><p>Find out the error location at the bottom of the Source section.</p><p><strong>Conclusion</strong></p><p><strong>LogBox </strong>is offered as the default logging experience in React Native 0.63 to make the errors and warnings debugging easier.</p><p><strong>LogBox </strong>focuses on three main complaints about redundant errors and warnings, poorly formatted, and unactionable logs.</p><p>It is time to enjoy amazing <strong>LogBox</strong> features. 😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edb4d9ef2b23" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/logbox-in-react-native-edb4d9ef2b23">LogBox in React Native</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pressable vs. Touchable in React Native]]></title>
            <link>https://medium.com/swlh/react-native-pressable-vs-touchable-5fec6b332f15?source=rss-9b5580bc0676------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fec6b332f15</guid>
            <category><![CDATA[pressable]]></category>
            <category><![CDATA[components]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[hybrid-mobile-application]]></category>
            <dc:creator><![CDATA[MahYar]]></dc:creator>
            <pubDate>Tue, 04 Aug 2020 17:50:22 GMT</pubDate>
            <atom:updated>2021-11-09T11:08:14.750Z</atom:updated>
            <content:encoded><![CDATA[<h4>Comparing Pressable with Touchable components</h4><figure><img alt="React Native Pressable vs. touchable" src="https://cdn-images-1.medium.com/max/1024/1*X4S1th30eotSpb2S9gOEdQ.png" /></figure><p><a href="https://reactnative.dev/">React Native</a> 0.63 introduced the new component, <a href="https://reactnative.dev/docs/pressable"><strong>Pressable</strong></a>.</p><p>What is the <a href="https://reactnative.dev/docs/pressable"><strong>Pressable</strong></a> component?</p><p>A core component that detects different steps of press interactions on any of its children components.</p><p>What is the <a href="https://reactnative.dev/docs/handling-touches#touchables"><strong>Touchable</strong></a> component?</p><p>A component that responds to touches on any of its children components.</p><p>Touchable components are:</p><ol><li><a href="https://reactnative.dev/docs/button">Button</a></li></ol><p>2. <a href="https://reactnative.dev/docs/touchablewithoutfeedback">TouchableWithoutFeedback</a></p><p>3. <a href="https://reactnative.dev/docs/touchablehighlight">TouchableHighlight</a></p><p>4. <a href="https://reactnative.dev/docs/touchableopacity">TouchableOpacity</a></p><p>5. <a href="https://reactnative.dev/docs/touchablenativefeedback">TouchableNativeFeedback</a></p><p>Pressable and Touchable components look pretty similar. Their basic functionalities are the same for making a text/image clickable and user interaction. 🤔</p><p>Let’s compare them in detail.</p><p><strong>Touchable</strong> Component:</p><p>1. It includes the styles and effects that do not meet the platform interactions.</p><p>2. It does not support high-quality interaction experience on different platforms.</p><p><strong>Pressable</strong> Component:</p><p>1. It detects various types of interactions.</p><p>2. Its API provides direct access to the current state of interaction.</p><p>3. Its capabilities could be extended to include hover, blur, focus, and more.</p><p><strong>Pressable</strong> contains a lot of new props and cool features such as:</p><ol><li><a href="https://reactnative.dev/docs/pressable#delaylongpress"><strong>delayLongPress</strong></a>: Duration in milliseconds from <em>onPressIn</em> by the time <em>onLongPress </em>is called.</li></ol><p>2. <a href="https://reactnative.dev/docs/pressable#hitslop"><strong>hitslop</strong></a>: Sets additional distance outside of the element in which a press can be detected.</p><p>3. <a href="https://reactnative.dev/docs/pressable#onlongpress"><strong>onLongPress</strong></a>: Called if the time after <em>onPressIn</em> lasts longer than 500 milliseconds.</p><p>4. <a href="https://reactnative.dev/docs/pressable#pressretentionoffset"><strong>pressRetentionOffset</strong></a>: Additional distance outside of the view which a touch is considered a press, before <em>onPressOut</em> is triggered.</p><p>5. <a href="https://reactnative.dev/docs/pressable#android_disablesound"><strong>android_disableSound</strong></a> (Android): If true, doesn’t play Android system sound on press.</p><p>6. <a href="https://reactnative.dev/docs/pressable#android_ripple"><strong>android_ripple</strong></a> (Android): Enables the Android ripple effect and configures its properties.</p><p>Now let’s see the <strong>Pressable</strong> component in an example:</p><p><strong>Result:</strong></p><figure><img alt="Pressable example GIF" src="https://cdn-images-1.medium.com/max/360/1*NUDGiKO3qENDC4AFSIOF6g.gif" /><figcaption>Pressable example screenshot</figcaption></figure><p><strong>Take away points:</strong></p><p><a href="https://reactnative.dev/blog/#pressable"><strong>Pressable</strong></a> is preferred to Touchable components according to React Native official docs. <strong>Pressable</strong> component offers a more extensive and future-proof way of handling the touch-based inputs.</p><p>The <strong>Pressable</strong> component is intended to replace the Touchable components.</p><p>It is time to start using the <strong>Pressable</strong> component for the upcoming apps. 😎</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fec6b332f15" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/react-native-pressable-vs-touchable-5fec6b332f15">Pressable vs. Touchable in React Native</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React Native Timers Introduction]]></title>
            <link>https://medium.com/swlh/react-native-timers-introduction-3d1ecabcb6d1?source=rss-9b5580bc0676------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d1ecabcb6d1</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[timer]]></category>
            <category><![CDATA[hybrid-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[MahYar]]></dc:creator>
            <pubDate>Sun, 02 Aug 2020 18:00:35 GMT</pubDate>
            <atom:updated>2020-12-14T15:56:36.743Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Timers in React Native Introduction</strong></h3><h4><strong>Exploring the Timers in React Native</strong></h4><figure><img alt="React Native image" src="https://cdn-images-1.medium.com/max/1024/1*WOC_b2jy8j8KK-948nLPxg.png" /></figure><p><a href="https://reactnative.dev/docs/timers#timers">Timers</a> are a crucial section of an application. <a href="https://reactnative.dev/">React Native</a> implements the browser Timers.</p><p>A JavaScript code block is normally accomplished synchronously. But there are some JavaScript native functions (<a href="https://developer.mozilla.org/en-US/docs/Mozilla/JavaScript_code_modules/Timer.jsm">Timers</a>) that allow us to delay the execution.</p><p>There are four categories of React Native Timers:</p><ol><li>Delay</li><li>Repeat</li><li>Immediate</li><li>Animation Schedule</li></ol><p>Now, let’s dive into the different Timers regarding <a href="https://reactnative.dev/">React Native</a> and <a href="https://developer.mozilla.org/en-US/docs/Web">Mozilla official</a> documentation.</p><blockquote><strong><em>DELAY</em></strong></blockquote><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setTimeout"><strong>setTimeout()</strong></a></li></ul><p>Calling the function or executing the code block after the stated delay.</p><pre>var <em>timeoutID</em> = setTimeout(<em>function</em>, <em>delay in milliseconds</em>)</pre><pre>// The below code displays the alert dialog after two seconds.<br>var timeoutId = setTimeout(<br>    () =&gt; { alert(‘After two seconds’)}<br>, 2000);</pre><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearTimeout"><strong>clearTimeout()</strong></a></li></ul><p>Removing the delay, set by setTimeout().</p><pre>clearTimeout(<em>timeoutID</em>)</pre><p>timeoutID: The ID is returned by calling the setTimeout</p><pre>// The below code removes the delay for &lt; timeoutId &gt;.<br>clearTimeout(timeoutId)</pre><blockquote><strong><em>REPEAT</em></strong></blockquote><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/setInterval"><strong>setInterval()</strong></a></li></ul><p>Calling the function or executing the code block repeatedly, with a fixed time delay between each call.</p><pre>var <em>intervalID</em> = setInterval(<em>function</em>, <em>delay in milliseconds</em>);</pre><pre>// The following code shows an alert dialog every three seconds.<br>var intervalId = setInterval(<br>     () =&gt; { alert(&#39;Every three second&#39;)}<br>, 3000);</pre><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/clearInterval"><strong>clearInterval()</strong></a></li></ul><p>Canceling the repeated action that was created by setInterval().</p><pre>clearInterval(<em>intervalID</em>);</pre><pre>// The following code removes the repeat for &lt; intervalId &gt;.<br>clearInterval(intervalId);</pre><blockquote><strong><em>IMMEDIATE</em></strong></blockquote><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/setImmediate"><strong>setImmediate()</strong></a></li></ul><p>Calling the function or execution as soon as possible.</p><pre>var <em>immediateID</em> = setImmediate(<em>function</em>);</pre><pre>// The below code displays the alert dialogue immediately.<br>var immediateId = setImmediate(<br>     () =&gt; {    alert(&#39;Immediate Alert&#39;);<br>}</pre><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/clearImmediate"><strong>clearImmediate()</strong></a></li></ul><p>Canceling the immediate actions that were set by setImmediate().</p><pre>clearImmediate(<em>immediateID</em>);</pre><pre>// The below code removes the &lt; immediateId &gt;<br>clearImmediate(immediateId);</pre><blockquote><strong><em>ANIMATION SCHEDULE</em></strong></blockquote><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame"><strong>requestAnimationFrame()</strong></a></li></ul><p>It is the standard way to perform animations.</p><p>Calling a function to update an animation before the next animation frame.</p><pre>var requestID = requestAnimationFrame(<em>function</em>);</pre><pre>// The following code perform the animation.<br>var requestId = requestAnimationFrame(<br>     () =&gt; { <br>          // animate something<br>     }<br>)</pre><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame"><strong>cancelAnimationFrame()</strong></a></li></ul><p>Canceling the function that was set by requestAnimationFrame().</p><pre>cancelAnimationFrame(requesetID);</pre><pre>// The following code removes the &lt;requestId&gt;<br>cancelAnimationFrame(requestId);</pre><p>Happy coding. 👩‍💻👨‍💻</p><p>Please let me know in the comments if I missed any part.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d1ecabcb6d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/react-native-timers-introduction-3d1ecabcb6d1">React Native Timers Introduction</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>