<?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 odedeyi oladapo on Medium]]></title>
        <description><![CDATA[Stories by odedeyi oladapo on Medium]]></description>
        <link>https://medium.com/@oladapsy?source=rss-1407d2c3830------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*1KCY6es9Zh06EHrqGcd23A.jpeg</url>
            <title>Stories by odedeyi oladapo on Medium</title>
            <link>https://medium.com/@oladapsy?source=rss-1407d2c3830------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 18:34:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@oladapsy/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[How JavaScript Runs Inside React Native]]></title>
            <link>https://medium.com/@oladapsy/how-javascript-runs-inside-react-native-55d4675ff074?source=rss-1407d2c3830------2</link>
            <guid isPermaLink="false">https://medium.com/p/55d4675ff074</guid>
            <dc:creator><![CDATA[odedeyi oladapo]]></dc:creator>
            <pubDate>Fri, 06 Feb 2026 15:15:51 GMT</pubDate>
            <atom:updated>2026-02-06T15:15:51.424Z</atom:updated>
            <content:encoded><![CDATA[<p>React Native allows developers to build mobile applications using JavaScript while still delivering near-native performance. Unlike React for the web, React Native does not run inside a browser. There is no DOM, no HTML, and no CSS in the traditional sense.</p><p>This raises an important question:</p><p>How does JavaScript actually run inside a React Native app?</p><p>This article explains, at a beginner level, how JavaScript runs under the hood in React Native and how it communicates with native mobile code.</p><p>Understanding React Native Architecture</p><p><strong>At a high level, React Native is built on three main layers:</strong></p><p>1. JavaScript Thread</p><p>2. Native Thread</p><p>3. Bridge (Communication Layer)</p><p>Each of these layers plays a role in executing JavaScript and rendering user interfaces on mobile devices.</p><p><strong>The JavaScript Thread</strong></p><p>At the core of every React Native app is the JavaScript thread.</p><p><strong>This is where:</strong></p><p>1. Your React Native code runs</p><p>2. Component logic is executed</p><p>3. State updates happen</p><p>4. API calls and business logic are handled</p><p>React Native does not use the browser’s JavaScript engine. Instead, it embeds a JavaScript engine directly inside the mobile app.</p><p>JavaScript Engines Used in React Native</p><p><strong>Depending on the platform and configuration, React Native uses:</strong></p><p>1. JavaScriptCore (JSC)</p><p>Default on iOS and Previously used on Android</p><p>2. Hermes</p><p>A lightweight JavaScript engine built specifically for React Native and Improves app startup time and reduces memory usage</p><p>These engines execute JavaScript code similarly to how a browser would, but without a DOM.</p><p><strong>The Native Thread</strong></p><p>The native thread handles everything related to the mobile platform itself, including:</p><p>Rendering UI components</p><p>Handling touch events</p><p>Running animations</p><p>Accessing device features such as the camera, GPS, and sensors</p><p>React Native components like &lt;View&gt;, &lt;Text&gt;, and &lt;Image&gt; are not web elements. They are mapped to real native components:</p><p>iOS → UIKit components</p><p>Android → Android View system components</p><p>So when you write React Native UI code, it eventually becomes actual native UI elements on the device.</p><p><strong>The Communication Problem</strong></p><p>Even though JavaScript is running inside the app, it cannot directly talk to native Android or iOS code because:</p><p>JavaScript and native code are written in different languages</p><p>They run in different environments</p><p>They cannot directly call each other’s functions</p><p>This language difference creates a communication barrier.</p><p>The Bridge: How JavaScript Talks to Native Code</p><p>To solve this problem, React Native introduced a system called the Bridge.</p><p>The Bridge acts as a translator between JavaScript and native code.</p><p>How the Bridge Works</p><p>JavaScript sends instructions</p><p><strong>These instructions are serialized</strong></p><p>They are converted into JSON</p><p>The JSON passes through the Bridge</p><p>Native code receives the message and executes it</p><p><strong>Results are sent back to JavaScript using the same process</strong></p><p>In simple terms:</p><p>JavaScript → JSON → Native</p><p>Native → JSON → JavaScript</p><p>This communication is asynchronous, meaning JavaScript does not block native operations and native code does not block JavaScript.</p><p>Example</p><p>When you write:</p><p>setState({ count: count + 1 });</p><p>Behind the scenes:</p><p>JavaScript calculates the new state</p><p>Sends UI update instructions through the Bridge</p><p>Native code updates the UI on the screen</p><p>This system made React Native possible in the first place.</p><p>Limitations of the Bridge</p><p>While the Bridge works well, it has some drawbacks:</p><p>Serializing data into JSON takes time</p><p>Large or frequent data transfers can affect performance</p><p>Everything being asynchronous can introduce delays</p><p>As React Native apps became more complex, these limitations became more noticeable.</p><p>Evolution of React Native: JSI, TurboModules, and Fabric</p><p>To improve performance, React Native introduced a newer architecture.</p><p>JavaScript Interface (JSI)</p><p>JSI is a newer way for JavaScript and native code to communicate.</p><p>At a high level:</p><p>JSI is built using C++</p><p>It reduces the need for heavy JSON serialization</p><p>JavaScript can interact with native code more directly</p><p>Communication becomes faster and more efficient</p><p>TurboModules</p><p>TurboModules improve how native modules are loaded:</p><p>Native modules are lazy-loaded</p><p>Faster app startup</p><p>Better performance and scalability</p><p>Fabric Renderer</p><p>Fabric is the new rendering system for React Native:</p><p>Improves UI consistency</p><p>Enables concurrent rendering</p><p>Makes animations smoother</p><p>Fabric works closely with JSI to improve overall performance.</p><p>Threads in React Native</p><p>React Native typically runs multiple threads:</p><p>JavaScript Thread — Runs JavaScript logic</p><p>UI Thread — Renders the user interface</p><p>Native Modules Thread — Handles heavy native operations</p><p>If JavaScript blocks the JS thread (for example, with long loops or heavy computations), the UI may become unresponsive. This is why performance optimization is important.</p><p><strong>Helpful Learning Resource</strong></p><p>This video explains the Bridge and why React Native later introduced improvements like JSI:</p><p>👉 <a href="https://youtu.be/TU_kTuz2i9Y">https://youtu.be/TU_kTuz2i9Y</a></p><p><strong>Summary</strong></p><p>JavaScript in React Native:</p><p>Runs inside an embedded JavaScript engine (JSC or Hermes)</p><p>Executes on a dedicated JavaScript thread</p><p>Does not run in a browser</p><p>Communicates with native code using the Bridge (originally)</p><p>Uses newer systems like JSI to improve performance</p><p>React Native combines:</p><p>JavaScript flexibility</p><p>Native performance</p><p>A well-designed communication system</p><p><strong>Conclusion</strong></p><p>Understanding how JavaScript runs inside React Native helps developers:</p><p>Write better-performing apps</p><p>Avoid blocking the JavaScript thread</p><p>Understand how React Native differs from web React</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55d4675ff074" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hello Guys!!!]]></title>
            <link>https://medium.com/@oladapsy/hello-guys-27e79b61a453?source=rss-1407d2c3830------2</link>
            <guid isPermaLink="false">https://medium.com/p/27e79b61a453</guid>
            <dc:creator><![CDATA[odedeyi oladapo]]></dc:creator>
            <pubDate>Sun, 12 May 2024 19:00:58 GMT</pubDate>
            <atom:updated>2024-05-13T12:51:39.688Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hello Guys!!! Today I am going to be answering the QUESTION: What happens when you type (https://www.google.) in your browser and press Enter.</h3><p>Introduction:<br>Greetings! Today, we’ll explore the intricate journey of a URL, such as “<a href="https://www.google.com/">https://www.google.com</a>&quot;, from your browser to the server. This process involves various key components working seamlessly to deliver the requested web page to your screen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mppz_EQ9yRf8t0GoKlMhtA.jpeg" /><figcaption>Image of what happens when you enter www.google.com to the web browser</figcaption></figure><p>Step 1: DNS Request</p><p>When you enter a URL like “<a href="https://www.google.com/">https://www.google.com</a>&quot; into your browser, the first step is to resolve the domain name to an IP address. This process, known as DNS (Domain Name System) resolution, ensures that computers can communicate with each other using human-readable domain names instead of complex IP addresses.</p><p>Your browser follows several steps to resolve the domain name:<br>- It checks its cache to see if the site has been visited before, retrieving the IP address from stored data if available.<br>- If not found in the cache, it looks into the operating system’s hosts file (/etc/hosts) for any manual mappings of domain names to IP addresses.<br>- If both steps fail, the browser queries DNS servers, starting from the root domain and moving down to the top-level domain, until it finds the correct IP address associated with the domain name.</p><p>Step 2: TCP/IP<br>Once the IP address is resolved, your browser establishes a connection with the server using the TCP/IP (Transmission Control Protocol/Internet Protocol) stack. TCP ensures reliable and ordered delivery of data packets, essential for web communication. Meanwhile, IP handles routing the packets between networks, facilitating communication across the internet.</p><p>Step 3: Firewall<br>As the request traverses the internet, it may encounter firewalls, which act as protective barriers against unauthorized access and malicious activity. Firewalls analyze incoming and outgoing traffic, blocking or allowing it based on predefined security rules. This ensures that only legitimate traffic reaches its destination, enhancing network security.</p><p>Step 4: HTTPS/SSL<br>The “https” in the URL indicates that the connection is encrypted using SSL (Secure Sockets Layer) or its successor, TLS (Transport Layer Security). This encryption ensures that data exchanged between your browser and the server remains confidential and tamper-proof. SSL/TLS employs cryptographic algorithms like RSA to generate public and private keys, safeguarding data transmission from eavesdropping or tampering.</p><p>Step 5: Load Balancer<br>To handle high traffic loads, websites often employ multiple servers. Load balancers distribute incoming requests across these servers to ensure optimal performance and reliability. They can be configured to use various algorithms, such as round-robin or least connections, to evenly distribute the load among server resources.</p><p>Step 6: Web Server<br>The request reaches the web server, which hosts the requested web page and processes the HTTP request. The web server retrieves the necessary files, such as HTML, CSS, and JavaScript, and returns them to the browser for rendering. Encryption ensures the secure transmission of data between the server and the client, safeguarding against unauthorized access or data interception.</p><p>Step 7: Application Server<br>In some cases, the web server communicates with an application server to execute dynamic content generation and business logic processing. The application server interacts with databases, retrieves relevant data, and performs necessary computations before returning the results to the web server for delivery to the client.</p><p>Step 8: Database<br>The application server accesses the database to retrieve and store data required for the web application’s functionality. Databases store structured data, such as user information, search results, and application settings, ensuring efficient data management and retrieval.</p><p>Conclusion:<br>In conclusion, the journey of a URL from your browser to the server involves a complex interplay of technologies, each playing a crucial role in delivering the requested content. Understanding this process provides valuable insight into the workings of the web infrastructure and enhances your overall technical knowledge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27e79b61a453" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>