<?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 Justyna Gręda on Medium]]></title>
        <description><![CDATA[Stories by Justyna Gręda on Medium]]></description>
        <link>https://medium.com/@justynagreda6?source=rss-9d2434bc654e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*0y9XyLXdV8LuXUGZ2lmr2g.jpeg</url>
            <title>Stories by Justyna Gręda on Medium</title>
            <link>https://medium.com/@justynagreda6?source=rss-9d2434bc654e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 10:49:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@justynagreda6/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[Kotlin Multiplatform: Benefits, Limitations & Our Contributions]]></title>
            <link>https://medium.com/swmansion/kotlin-multiplatform-benefits-limitations-our-contributions-560a148d28c9?source=rss-9d2434bc654e------2</link>
            <guid isPermaLink="false">https://medium.com/p/560a148d28c9</guid>
            <category><![CDATA[kotlin]]></category>
            <category><![CDATA[kotlin-multiplatform]]></category>
            <dc:creator><![CDATA[Justyna Gręda]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 16:43:18 GMT</pubDate>
            <atom:updated>2025-12-08T16:49:21.104Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NIAken_OVGD0pW4EMLS6Xw.png" /></figure><p>The popularity of cross-platform mobile app development is rising each year — according to <a href="https://ripenapps.com/blog/cross-platform-app-development-statistics/">RipenApps</a>, 55% of developers prefer to use a framework over native code. Maintaining a single codebase for both Android and iOS can be simpler and more time-efficient, especially for small enterprises and startups, which require focus on rapid product development but have limited human resources. With popular frameworks like React Native and Flutter already well established, we wanted to take a closer look at a newer option: Kotlin Multiplatform.</p><p><strong>In this article, we break down what it does well, where it falls short, and share a few examples of how it can be used in real projects.</strong></p><h3>What is Kotlin Multiplatform?</h3><p><strong>Kotlin Multiplatform (or KMP) is an open-source tool that allows sharing code between Android, iOS, and even desktop or web</strong> — all while preserving the benefits of native development. It was introduced in 2017 by JetBrains, the company behind IntelliJ IDEA and Kotlin. KMP uses Kotlin code and compiles it into platform binaries for seamless integration. Combined with Compose Multiplatform, it allows for development of shared UIs for all the platforms without maintaining multiple implementations.</p><p>The code is divided into source sets — the common one includes the business logic that can be shared between all the platforms. For the platform-specific code, use the designated source set:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*WEX_98gT3uSGl4UYFlcs2A.png" /><figcaption>Platform-specific and common source sets</figcaption></figure><p>The code-sharing feature introduces more flexibility to the project — for example, only the logic (or a piece of it) can be written using KMP while keeping the UI native. It supports interoperability with Swift/Objective-C, so that Kotlin code can be used directly from iOS and macOS applications. On top of that, KMP offers near-native performance, which is a key advantage for any cross-platform tool or framework. For more information, visit the <a href="https://kotlinlang.org/docs/multiplatform/get-started.html">Kotlin documentation</a>.</p><h3>KMP vs React Native — key characteristics and differences</h3><p>It’s time to compare the two tools from a developer’s point of view. It has been a very valuable experience to try writing apps using both of them and to see the differences.</p><h4>Native compilation and performance</h4><p>Kotlin Multiplatform significantly enhances performance through native compilation. There is no need for a virtual machine or an additional engine to interpret the code, like in React Native. Even compared to the bridgeless architecture, KMP still has an advantage over React Native, as it compiles to true, native code. This allows for avoiding bottlenecks associated with any overhead, leading to improved performance and a smooth user experience.</p><h4>Simplified cross-platform development of existing apps</h4><p>For developers with an existing Android app, it is easy to introduce KMP to their project. Because the main business logic is written in Kotlin, you don’t have to rewrite everything when adding support for a new platform — it really cuts down on the amount of extra work.</p><h4>User interface</h4><p><strong>React Native drives native views from JavaScript, while KMP focuses on shared business logic and lets you choose your UI approach</strong>: fully native per platform or built with Compose Multiplatform. The latter uses its own rendering pipeline, drawing components onto a canvas rather than relying on platform-specific views. Compose Multiplatform can incorporate Material Design through official libraries if desired, but it also supports building UIs with basic primitives for a more neutral or custom look.</p><h4>Composable preview</h4><p>This feature is available when using KMP with Compose Multiplatform and allows to preview the UI in Android Studio by adding a Preview annotation. This way, the UI can be examined without launching the entire app on a device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vdbi60u8Mh4QVs4qxOaIgA.png" /><figcaption>Preview example in the KMP sharing sample app</figcaption></figure><h4>Hot reload</h4><p>This might be the feature that is deeply missed when using KMP. With React Native, you usually don’t need to rebuild the entire project when making small updates, but KMP apps typically require a full re-run. This may change in the near future, since <a href="https://kotlinlang.org/docs/multiplatform/compose-hot-reload.html">Compose Hot Reload</a> has been introduced, but it will likely take some time before it’s widely adopted.</p><h4>Debugging</h4><p>As KMP relies on Kotlin and an IDE plugin, debugging doesn’t require any external resources and is done using standard IDE tools (for iOS, the code can be run directly in Xcode). The React Native debugging experience is split — the IDE tools are still available for the native code, but investigating JavaScript code requires using additional means, like React Native <a href="https://reactnative.dev/docs/react-native-devtools">DevTools</a>. If you’re looking for an IDE for React Native, with DevTools included, you can check out <a href="https://ide.swmansion.com/pricing">Radon, which now comes with a free plan</a>.</p><h4>Differences in maturity</h4><p>KMP reached its stable version in 2023, six years after being introduced. While there are a lot of packages available and some significant companies are using KMP in their apps (<a href="https://kotlinlang.org/case-studies/?type=multiplatform">Duolingo, H&amp;M, Bolt, X</a>), it’s still a relatively new tool, so its solutions aren’t as fully developed yet, and its community support may not be as strong as React Native’s.</p><p>It is crucial to note that there is no generic answer to which tool you should choose for your app. Each of them solves different problems, and integration should depend on a use case, available resources, and knowledge.</p><h3>Software Mansion and KMP</h3><p>Our software agency is well-known for its significant contribution to the React Native community, but this is not our only focus. We diversify our development paths and commercial projects, and so far we have been successful in such fields as multimedia (<a href="https://membrane.stream/">Membrane</a>, <a href="https://fishjam.io/">Fishjam</a>), AI, and blockchain. There are some skilled Kotlin developers in our ranks, and we devote part of our work to open-source projects — this, connected with the rising popularity of KMP, made us start a team centered around KMP research and package development. It’s still in a very early stage, but we already provide a few tools along with examples of usage — you can learn more about them below.</p><h3>Contributions to the KMP world</h3><p>Over the past few months, our new team has concentrated on researching the topic of Kotlin Multiplatform. We shared our ideas with JetBrains, searching for a field to focus our development on. That’s how we started our journey and developed a few valuable tools:</p><h4><a href="https://github.com/software-mansion/kmp-maps">KMP Maps</a></h4><p>A universal map component for Compose Multiplatform applications, offering seamless integration with native map APIs on both Android and iOS platforms. It uses Google Maps SDK on Android and Apple Maps (MapKit) on iOS. We also added Google Maps support for iOS, the possibility to display GeoJSON data, and custom markers are on their way. The location permission handling is built in, and user interactions like clicks, camera movements, and gestures are handled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*Dl-8jG-raAtolBOcLP8K0A.gif" /><figcaption>KMP Maps sample app</figcaption></figure><h4><a href="https://github.com/software-mansion-labs/kmp-live-activity">KMP Live Activity</a></h4><p>It offers a Live Activity API for KMP. It’s based on the well-received <a href="https://github.com/software-mansion-labs/expo-live-activity">Expo Live Activity</a> and uses a novel dual architecture to meet the technical requirements for Live Activities. The core logic lives in a Swift package, and a KMP sidecar is provided separately; these two are bound by the consumer and communicate via Kotlin’s Swift interop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*tJBDTHuNlJuwABHfMagnzw.gif" /><figcaption>KMP Live Activity sample app</figcaption></figure><h4><a href="https://github.com/software-mansion/kmp-sharing">KMP Sharing</a></h4><p>A universal sharing function for Compose Multiplatform. It uses the Android Intent system and iOS UIActivityViewControllerto provide a native experience. Various customization options, like personalizing the title of the thumbnail, are also available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*7sqdjzxAS2jpc3UW902oNQ.gif" /><figcaption>KMP Sharing sample app</figcaption></figure><h4><a href="https://github.com/software-mansion-labs/kmp-wheel-picker">KMP Wheel Picker</a></h4><p>A modular wheel picker for Compose Multiplatform. It provides multiple customization options, like styling items based on position, changing scroll friction, or scrolling programmatically with an animation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*M8RcrVzoAPLk98Xsb_4GSQ.gif" /><figcaption>KMP Wheel Picker sample app</figcaption></figure><p>Our contributions demonstrate that there is still a need for production-ready tools within the maturing Kotlin Multiplatform ecosystem. The team is already working on new ones and some further improvements to KMP Maps will also be released soon. We are proud to be a part of this new cross-platform tool, and we hope for further success in maintenance and development in the future.</p><p><strong>If you need help with KMP, or have any suggestions for future projects, feel free to contact us at </strong><a href="/service/mailto:projects@swmansion.com"><strong>projects@swmansion.com</strong></a><strong>.</strong></p><p>We are Software Mansion — software development consultants, a team of React Native core contributors, multimedia and AI experts. Drop us a line at projects@swmansion.com and let’s find out how we can help you with your project.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=560a148d28c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swmansion/kotlin-multiplatform-benefits-limitations-our-contributions-560a148d28c9">Kotlin Multiplatform: Benefits, Limitations &amp; Our Contributions</a> was originally published in <a href="https://medium.com/swmansion">Software Mansion</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing react-native-whip-whep]]></title>
            <link>https://medium.com/swmansion/introducing-react-native-whip-whep-ac9e5588d4da?source=rss-9d2434bc654e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac9e5588d4da</guid>
            <category><![CDATA[android]]></category>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[webrtc]]></category>
            <dc:creator><![CDATA[Justyna Gręda]]></dc:creator>
            <pubDate>Mon, 21 Oct 2024 13:16:36 GMT</pubDate>
            <atom:updated>2024-10-21T13:16:36.099Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VX5jRLiIu2H6S7VsZvILdg.png" /></figure><p>As streaming content is becoming more and more popular, the demand for upgrading present streaming protocols and implementing new ones for various platforms is also on the rise. That is why we decided to embrace this trend and create an SDK supporting WHIP and WHEP protocols for React Native, Android, and iOS.</p><p>WebRTC-HTTP ingestion protocol, or simply WHIP, is a relatively new way of <a href="https://www.meetecho.com/blog/whip-janus/">injecting WebRTC streams that could be integrated in existing broadcasting tools</a>. The motivation behind its development was the absence of a standard signaling protocol for WebRTC. It uses HTTP to establish a WebRTC PeerConnection by exchanging all the necessary information.</p><p>To initiate a session, an SDP offer is sent, containing data about the session and media that will be streamed — their type, codecs, and more. The client and the WHIP server then exchange ICE candidates to establish the best path for peer-to-peer connectivity. This involves sending additional HTTP requests for each ICE candidate gathered. With the SDP answer received, the client updates its local media configuration and starts initiating the media streams. Typically, this involves setting up RTP (Real-time Transport Protocol) streams for audio and video data, as well as RTCP (Real-time Control Protocol) for control messages. To terminate the session, the client can send an HTTP DELETE request to the WHIP server to clean up resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*5zVZ_mWUT5-8CYhb3XeY5w.png" /><figcaption>WHIP connection establishment and data flow¹</figcaption></figure><p>When it comes to WHEP, which was conceived as a companion protocol to WHIP, establishing a connection and receiving a stream is very similar to WHIP. The client generates an SDP offer describing its media capabilities and what it expects to receive and sends it to a WHEP endpoint using an HTTP POST request. After the answer is sent, the ICE candidates are exchanged between the client and the server to determine the best path for media transport. Once the negotiation is complete and the best candidate pair is selected, the client starts receiving the media streams from the server. When the streaming session is no longer needed, the client can send an HTTP DELETE request to clean up resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*UDM3Le8AfqdXgyPx_8wPGw.png" /><figcaption>WHEP connection establishment and data flow²</figcaption></figure><h4>Why is it important?</h4><p>As React Native is a cross-platform framework (and <a href="https://swmansion.com/react-native">Software Mansion is an important contributor to the React Native world</a>), an implementation of WHIP and WHEP protocols for React Native can help build streaming applications that rely on WebRTC.</p><h4>How does it work?</h4><p>react-native-whip-whep is a package that allows the user to establish a WebRTC PeerConnection, set up the stream properties, such as resolution or whether the audio or video should be streamed or not, and receive or send media stream. There are also two video views available, allowing you to view the stream or check the camera preview. All this can be done with very few steps.</p><p>To create a client, createWhepClient() or createWhipClient() should be used. They create a WebRTC PeerConnection that will handle the streams. Both of those functions require a server URL and can also take additional configuration options, such as enabling/disabling audio/video or specifying a different STUN server URL. To be able to use all functionalities of WHIP client, it is necessary to provide a camera that will be used for the stream (accessing a list of all available cameras is also provided in the package).</p><pre>createWhepClient(&#39;https://broadcaster.elixir-webrtc.org/api/whep&#39;, {<br>  authToken: &#39;example&#39;,<br>});</pre><p>Remember that a WHIP/WHEP server is required for the protocols to stream and receive media. For testing purposes, we recommend the <a href="https://github.com/elixir-webrtc/ex_webrtc/tree/master/examples/whip_whep">whip_whep server</a> developed by our <a href="https://membrane.stream/">Membrane</a> team. A simple stream that can be received using WHEP is also shared by our <a href="https://broadcaster.elixir-webrtc.org/">broadcaster</a>.</p><p>Now all that’s left is to connect — connectWhepClient() and connectWhipClient() send the SDP offers to the endpoints and share the list of ICE candidates. After everything is established and negotiated, the stream will be received or sent, depending on the client used.</p><pre>await connectWhepClient();</pre><p>To see the stream or camera preview, one of the View components should be used. It can be styled to match the application UI.</p><pre>&lt;WhepClientView style={styles.clientView} /&gt;</pre><p>When the stream is finished, the client should be disconnected in order to free the resources.</p><pre>disconnectWhepClient();</pre><p>Here is a very simple example on how to receive the stream shared by broadcaster:</p><pre>import { StyleSheet, Button, View, ActivityIndicator } from &#39;react-native&#39;;<br><br>import React, { useEffect, useState } from &#39;react&#39;;<br>import {<br>  connectWhepClient,<br>  createWhepClient,<br>  disconnectWhepClient,<br>  WhepClientView,<br>} from &#39;react-native-whip-whep&#39;;<br><br>export default function HomeScreen() {<br>  const [isLoading, setIsLoading] = useState(false);<br>  const [shouldShowPlayBtn, setShouldShowPlayBtn] = useState(true);<br><br>  const handlePlayBtnClick = async () =&gt; {<br>    setShouldShowPlayBtn(false);<br>    setIsLoading(true);<br>    try {<br>      await connectWhepClient();<br>      setIsLoading(false);<br>    } catch (error) {<br>      console.error(&#39;Failed to connect to WHEP Client&#39;, error);<br>    }<br>  };<br><br>  const initialize = async () =&gt; {<br>    createWhepClient(&#39;https://broadcaster.elixir-webrtc.org/api/whep&#39;);<br>  };<br><br>  useEffect(() =&gt; {<br>    initialize();<br>    return () =&gt; {<br>      disconnectWhepClient();<br>    };<br>  }, []);<br><br>  return (<br>    &lt;View style={styles.container}&gt;<br>      &lt;View style={styles.box}&gt;<br>        &lt;WhepClientView style={styles.clientView} /&gt;<br>        {shouldShowPlayBtn &amp;&amp; (<br>          &lt;Button title=&quot;Play&quot; onPress={handlePlayBtnClick} /&gt;<br>        )}<br>        {isLoading &amp;&amp; &lt;ActivityIndicator size=&quot;large&quot; color=&quot;#2196F3&quot; /&gt;}<br>      &lt;/View&gt;<br>    &lt;/View&gt;<br>  );<br>}<br><br>const styles = StyleSheet.create({<br>  container: {<br>    flex: 1,<br>    paddingTop: 50,<br>  },<br>  box: {<br>    flex: 1,<br>    justifyContent: &#39;center&#39;,<br>    alignItems: &#39;center&#39;,<br>  },<br>  clientView: {<br>    width: &#39;100%&#39;,<br>    height: 200,<br>    marginBottom: 20,<br>  },<br>});</pre><p>The code above is a part of the example app that can be found in the <a href="https://github.com/software-mansion/react-native-whip-whep">code repository</a>. After running it, a screen with a green timer accompanied by a beeping sound should be present.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rCa3AGPeEPJI_o-auW3ojA.png" /></figure><p>For more information about the usage, check out our <a href="https://docs.swmansion.com/react-native-whip-whep/">documentation</a> or run the <a href="https://github.com/software-mansion/react-native-whip-whep/tree/main/examples/react-native/WhipWhepDemo">example app</a>.</p><h4>Try it out!</h4><p>The package is available via <a href="https://www.npmjs.com/package/react-native-whip-whep">npm</a>. Keep in mind that it is a basic implementation of the protocols and some more complicated features described in the cited drafts might not be available. Try it out and report any problems via <a href="https://github.com/software-mansion/react-native-whip-whep">GitHub</a>.</p><p>This project has been built and is maintained by Software Mansion. We’re a software agency with experience in building web and mobile apps. We are React Native Core Contributors, creators of the multimedia framework – Membrane, and experts in dealing with all kinds of React Native &amp; WebRTC issues. We can help you build your next dream product — <a href="https://swmansion.com/contact/projects">hire us</a>.</p><p>[1]: Sergio Garcia Murillo , Dr. Alex Gouaillard. (August 30 2024). WebRTC-HTTP ingestion protocol (WHIP) <a href="https://datatracker.ietf.org/doc/draft-ietf-wish-whip/">https://datatracker.ietf.org/doc/draft-ietf-wish-whip/</a></p><p>[2]: Sergio Garcia Murillo , Cheng Chen. (September 19 2024). WebRTC-HTTP Egress Protocol (WHEP) <a href="https://datatracker.ietf.org/doc/draft-ietf-wish-whep/">https://datatracker.ietf.org/doc/draft-ietf-wish-whep/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac9e5588d4da" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swmansion/introducing-react-native-whip-whep-ac9e5588d4da">Introducing react-native-whip-whep</a> was originally published in <a href="https://medium.com/swmansion">Software Mansion</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>