<?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: JhayR Dev</title>
    <description>The latest articles on DEV Community by JhayR Dev (@jhayr_dev_1ea1820b5da517f).</description>
    <link>https://dev.to/jhayr_dev_1ea1820b5da517f</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4265466%2F98a98f22-5a5e-4fdf-8665-9f30b84f011c.jpg</url>
      <title>DEV Community: JhayR Dev</title>
      <link>https://dev.to/jhayr_dev_1ea1820b5da517f</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/jhayr_dev_1ea1820b5da517f"/>
    <language>en</language>
    <item>
      <title>Building SloMo: the native side of a React Native screen-time app</title>
      <dc:creator>JhayR Dev</dc:creator>
      <pubDate>Wed, 25 Nov 2026 20:08:02 +0000</pubDate>
      <link>https://dev.to/jhayr_dev_1ea1820b5da517f/building-slomo-the-native-side-of-a-react-native-screen-time-app-21p8</link>
      <guid>https://dev.to/jhayr_dev_1ea1820b5da517f/building-slomo-the-native-side-of-a-react-native-screen-time-app-21p8</guid>
      <description>&lt;p&gt;I'm building &lt;a href="https://slomo.jhayr.com/" rel="noopener noreferrer"&gt;SloMo&lt;/a&gt;, a free screen-time and app-blocking app for iOS and Android. Its shared interface uses React Native and TypeScript, with native Swift and Kotlin integrations for the platform-specific work.&lt;/p&gt;

&lt;p&gt;The interesting engineering problem is that “block an app until a timer ends” sounds like one feature, but it crosses several operating-system boundaries.&lt;/p&gt;

&lt;h2&gt;
  
  
  A shared UI still needs platform-specific behavior
&lt;/h2&gt;

&lt;p&gt;On iOS, SloMo uses Apple's FamilyControls, ManagedSettings, and DeviceActivity frameworks. On Android, the implementation uses native services and usage-access APIs, including UsageStatsManager.&lt;/p&gt;

&lt;p&gt;That makes the boundary between the UI and native code important. A screen can present the same concept on both platforms while the permission flow, scheduling, and reporting underneath it differ. Treating those differences as part of the product helps make the setup instructions more honest and useful.&lt;/p&gt;

&lt;h2&gt;
  
  
  Permissions are part of onboarding
&lt;/h2&gt;

&lt;p&gt;An app blocker needs more explanation than a typical timer. People should understand why a system permission is needed and what will not work without it.&lt;/p&gt;

&lt;p&gt;For example, Android setup includes Usage Access and Display Over Apps. On iOS, Screen Time authorization belongs to a different system flow. A generic “enable permissions” screen cannot explain both well.&lt;/p&gt;

&lt;p&gt;A useful testing checklist for this kind of app includes denied permissions, returning from Settings, and starting a scheduled block while the app is in the background—not just the happy path inside the foreground UI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Make the ordinary use case easy to understand
&lt;/h2&gt;

&lt;p&gt;SloMo has timed blocks and custom schedules, plus optional movement-to-unlock goals. Timed blocks do not require exercise. Keeping that distinction clear matters: someone who wants a quiet study session should be able to understand the timer without first learning about the movement features.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw89zq2ka2bofuvz8m29q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fw89zq2ka2bofuvz8m29q.png" alt="SloMo Time Locks and schedules" width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is also a sloth companion: completing a Time Lock or workout earns a leaf, limited to one per day. That limit keeps the reward focused on daily consistency rather than repeatedly completing sessions to collect more rewards.&lt;/p&gt;

&lt;h2&gt;
  
  
  The current product
&lt;/h2&gt;

&lt;p&gt;SloMo is available for iPhone and Android. It has no subscription or in-app purchases, and it is supported by banner ads. Core features work offline and no account is required; that does not mean the app never connects to the internet.&lt;/p&gt;

&lt;p&gt;You can find the store links and a walkthrough at &lt;a href="https://slomo.jhayr.com/" rel="noopener noreferrer"&gt;slomo.jhayr.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;For developers building apps around OS permissions: how do you explain the setup without overwhelming someone before they reach the first useful action?&lt;/p&gt;

</description>
      <category>buildinpublic</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
