<?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[Timeless - Medium]]></title>
        <description><![CDATA[An inside look into how we approach design, development and user experience at timeless.co - Medium]]></description>
        <link>https://medium.com/timeless?source=rss----51270e0e87a0---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Timeless - Medium</title>
            <link>https://medium.com/timeless?source=rss----51270e0e87a0---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 00:03:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/timeless" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Mobile App Checklist Basics-I]]></title>
            <link>https://medium.com/timeless/mobile-app-checklist-basics-i-35464bb325d0?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/35464bb325d0</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[reanimated]]></category>
            <dc:creator><![CDATA[Karthik Balasubramanian]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 13:58:08 GMT</pubDate>
            <atom:updated>2025-07-03T14:35:23.851Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey everyone, after a long time, I am writing a blog. I was out of topics recently.</p><p>I wanted to make a Base Checklist for Mobile Apps when building with React Native, which will make UI/UX better.</p><p>So I will be walking you through some basic practices to follow when developing with React Native.</p><ol><li>Using Scroll View <br>— bounce — iOS only<br>— Show or hide the scroll indicator.<br>— Pull to refresh (Vertical)<br>— Carousel Items should not cut on the edges</li><li>Basic bounding for touch area<br>— Pressable passing `hitSlop` value</li><li>Feedbacks</li><li>Handling SVG</li><li>Loading/Empty State Placeholder</li><li>iOS Smooth Corner Radius</li></ol><p>Let us go through these one by one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9F68_k2sD8ZWNuhf5UnfFw.png" /><figcaption>Generated Cover by ChatGPT-4o</figcaption></figure><h4>Scroll View</h4><p><strong>i. Bounce — iOS Only.</strong></p><p>When using `ScrollView` in React Native, you will get props like:</p><ol><li>alwaysBounceHorizontal</li><li>alwaysBounceVertical</li><li>bounces</li></ol><p>By default, every prop is set to true for a reason, which is because it is the natural behaviour in iOS. So if you end up setting it as false it might end up being a bad user experience. So <strong>NEVER </strong>set it to false.</p><p><strong>ii. Hiding the scroll indicator.</strong></p><p>This is optional, and it mostly depends on how the design looks for the list.</p><p>If the List Item overflows to the edges, you might want to hide it. Or if the scrolling content is very less, in which case you might end up with a big scroll indicator for a smaller content, making the UI a bit ugly.</p><p>The props are</p><ol><li>showsHorizontalScrollIndicator</li><li>showsVerticalScrollIndicator</li></ol><p>By default, these props are set to true, you can set it to false whenever you feel it is making your UI fugly.</p><p>iii. <strong>Pull to refresh.</strong></p><p>It is always nice to have the pull to refresh the list option. So make sure you have it in your app.</p><p>You have got the refreshControl prop, which accepts a component, and you can render your refreshing state. Check out the code <a href="https://reactnative.dev/docs/refreshcontrol">here</a>.</p><p>Or you can make the user take multiple action with the Pull to action. Check my blog here.</p><p><a href="https://medium.com/timeless/building-pull-to-action-interaction-part-i-f38dc41df39a">Building Pull To Action Interaction — Part I</a></p><p>iv. <strong>Carousel Items should not cut on the edges.</strong></p><p>When you render a horizontal list of items using `ScrollView` or `FlatList`, say for example see this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*CCcECHJIvEFuT62iuN_6xA.gif" /></figure><p>Here, having a padding to the whole container makes the natural flow of scrolling look a bit off as the pills gets cut. So we need to set the padding to the contentContainerStyle prop of the `FlatList` or `ScrollView`.</p><p>Which makes the flow something like this:</p><pre>contentContainerStyle={tailwind.style(&#39;px-5&#39;)}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*xIphlwhBPc_Yn7xGGPrQew.gif" /></figure><h4>Touch Area Bounding</h4><p>So users interact with their fingers, not a precise cursor on their mobile, which means we need to account for the average finger size so we can avoid unnecessary multiple tapping to register the tap from the user.</p><p>Usually in design, the tappable areas are usually accounted for using padding of the container. In the above pill, you need to wrap the entire pill inside the `&lt;Pressable /&gt;` and not just the text. That would result in a Touchable are something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*oNqF9vSKzgPuxbLmmxXdHA.png" /></figure><p>You can check these by opening → Developer Menu (from metro server) → Select Toggle Element Inspector and enable “Touchables”.</p><p>Let us say we have to render a Checkbox like this, lets see the usual touch area of the element.</p><blockquote>You can do that by</blockquote><blockquote>iOS Simulator: Ctrl + Cmd ⌘ + Z (or Device &gt; Shake)</blockquote><blockquote>Android emulators: Cmd ⌘ + M (macOS) or Ctrl + M (Windows and Linux)</blockquote><blockquote>Tap on → “Touchables”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_pNI5cVhnBpDEo1B9hP9w.png" /><figcaption>Checkbox with very small Touchable Area</figcaption></figure><p>Just an element of size 14×14.</p><p>Think how hard it would be to get the tap on this component.</p><p>What will you do if the component does not have the default padding through design?</p><p>There is a prop hitSlop in &lt;Pressable/&gt;, actually in all the component which handles. This prop just sets an additional distance outside the element in which a press can be detected. It is of Rect Object Type.</p><pre>hitSlop={{<br>    bottom: 20,<br>    left: null,<br>    right: undefined,<br>    top: 50<br>}}</pre><p>or just one value, like:</p><pre>hitSlop={10}</pre><p>Setting it to a value will increase the touch area like this, which makes it easily accessible, making it easier to register the tap.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WX8hyA7K6rxVgfeqTeQ6bQ.png" /><figcaption>Checkbox with `hitSlop` value set.</figcaption></figure><h4>Feedbacks</h4><p>It is a really good user experience to give feedbacks when user interacts with your app in any way. There are multiple ways you could do that;</p><ol><li><strong>Visual Feedback</strong> (Using colour, shape, or style changes to communicate state)</li><li><strong>Motion Feedback</strong> (Applying subtle scale or transform animations to guide attention)</li><li><strong>Tactile Feedback</strong> (Leveraging haptics or vibrations to reinforce actions)</li></ol><p>Let’s see how we can give Visual Feedback.</p><p>We already have components Touchable components in React Native,</p><ul><li>Touchable Native Feedback (Android only)</li><li>Touchable Highlight — this gives a default dark greyish colour on press</li><li>Touchable Opacity — this changes the opacity on press</li><li>Touchable Without Feedback — no feedback</li><li><strong>Pressable — recommended</strong></li></ul><p>Let us see how we can use Pressable Component to achieve a good visual feedback.</p><p>Here is a Button component from <a href="https://www.figma.com/design/Ei57z8fjs5PwdDxVwTeaBL/AdaptUI-v1.0--Community-?node-id=1431-0&amp;t=gKEXH6zuDUPsVT3b-0">AdaptUI</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D1jRQf1SBexjK9eEUCxYhQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sR8Rf7kXZw_FjYifKV7gng.png" /><figcaption><strong>Primary Button:</strong> default (left) &amp; pressed (right)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E3ED3KnNQkmqCzLrRAezQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GkxRvBMWdehwL1hBTvsdyg.png" /><figcaption><strong>Success Button:</strong> default (left) &amp; pressed (right)</figcaption></figure><p>This is a visual feedback, where give a feedback through background color.</p><p>The styles of the components are picked from <a href="https://www.figma.com/design/Ei57z8fjs5PwdDxVwTeaBL/AdaptUI-v1.0--Community-?node-id=1431-0&amp;t=FRJuu8awZqeksF0g-0">AdaptUI Design System</a>.</p><p>Here is a sample code for a simple button!</p><pre>&lt;Pressable<br>  style={({ pressed }) =&gt; [<br>    tailwind.style(<br>      &quot;min-h-10 px-3 justify-center items-center bg-blue-600 rounded-xl&quot;,<br>      pressed ? &quot;bg-blue-700&quot; : &quot;&quot;,<br>    ),<br>  ]}<br>&gt;<br>  &lt;Animated.Text style={tailwind.style(&quot;text-lg text-[#fff]&quot;)}&gt;<br>    Pressable<br>  &lt;/Animated.Text&gt;<br>&lt;/Pressable&gt;</pre><p>I use tailwind for styling in React Native as well, I think it is a great way of writing styles.</p><p>So Pressable component has a style prop, which accepts both static style object and also a function which gives you a boolean value which is an interaction state. So, we can use this to give user the feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*jniNlWhm83lrs6PbUwOkPw.gif" /><figcaption>The Color Feedback on User Feedback</figcaption></figure><p>Now, let us look at Motion Feedback which is can be a simple “scale animation”.</p><p>I have written a detailed blog on writing a simple reusable scale animation hook,</p><p><a href="https://medium.com/timeless/creating-a-common-scale-animation-handler-using-react-hooks-4715cae8cfc8">Creating a Common Scale Animation Handler using React Hooks</a></p><p>We can use the useScaleAnimation() hook.</p><pre>const { handlers, animatedStyle } = useScaleAnimation();<br><br>&lt;Animated.View style={animatedStyle}&gt;<br>  &lt;Pressable<br>    style={({ pressed }) =&gt; [<br>      tailwind.style(<br>        &quot;min-h-10 px-3 justify-center items-center bg-blue-600 rounded-xl&quot;,<br>        pressed ? &quot;bg-blue-700&quot; : &quot;bg-blue-600&quot;,<br>      ),<br>    ]}<br>    {...handlers}<br>  &gt;<br>    &lt;Animated.Text style={tailwind.style(&quot;text-lg text-[#fff]&quot;)}&gt;<br>      Pressable<br>    &lt;/Animated.Text&gt;<br>  &lt;/Pressable&gt;<br>&lt;/Animated.View&gt;</pre><p>Look how the component gives a better feedback now,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*GYuzJ9d8wKxyn8teQm40mg.gif" /><figcaption>Button with Scale Down Animation</figcaption></figure><p>The final feedback is the Tactile Feedback, which is giving haptic feedback when user interacts.</p><p>And again, I wrote a simple hook to handle the haptics as well 😂.</p><p><a href="https://medium.com/timeless/implementing-haptic-feedback-in-react-native-writing-a-usehaptic-hook-6b8612675599">Haptics in React Native: Creating a useHaptic() Hook</a></p><p>Looks like a self promoting my previous blogs!</p><p>So yeah, we can give the haptic feedback using the useHaptic() hook.</p><pre>const haptic = useHaptic(&quot;light&quot;);<br><br><br>&lt;Animated.View style={animatedStyle}&gt;<br>  &lt;Pressable<br>    onPress={() =&gt; haptic?.()}<br>    style={({ pressed }) =&gt; [<br>      tailwind.style(<br>        &quot;min-h-10 px-3 justify-center items-center bg-blue-600 rounded-xl&quot;,<br>        pressed ? &quot;bg-blue-700&quot; : &quot;bg-blue-600&quot;,<br>      ),<br>    ]}<br>    {...handlers}<br>  &gt;<br>    &lt;Animated.Text style={tailwind.style(&quot;text-lg text-[#fff]&quot;)}&gt;<br>      Pressable<br>    &lt;/Animated.Text&gt;<br>  &lt;/Pressable&gt;<br>&lt;/Animated.View&gt;</pre><p>And that is about giving feedbacks on users interacting with our app, which improves the experience. 🚀</p><h4>Handling SVGs</h4><p><a href="https://medium.com/u/23d9a033fed2">Software Mansion</a> has a great library for handling SVGs, <a href="https://github.com/software-mansion/react-native-svg">react-native-svg</a>. I’ve been using it for a long time now, and the dev team behind it has been doing a stellar job maintaining it.</p><p>We can export the icon from Figma(given by our designers).</p><p>By doing that we can get better way of tweaking our SVG,</p><pre>import React from &quot;react&quot;;<br>import Svg, {<br>  ClipPath,<br>  Defs,<br>  G,<br>  Path,<br>  PathProps,<br>  Rect,<br>} from &quot;react-native-svg&quot;;<br><br>export const Slot: React.FC&lt;PathProps&gt; = ({ fill = &quot;#525252&quot; }) =&gt; {<br>  return (<br>    &lt;Svg width=&quot;100%&quot; height=&quot;100%&quot; viewBox=&quot;0 0 12 12&quot; fill=&quot;none&quot;&gt;<br>      &lt;G clipPath=&quot;url(#clip0_2866_43368)&quot;&gt;<br>        &lt;Path<br>          fillRule=&quot;evenodd&quot;<br>          clipRule=&quot;evenodd&quot;<br>          d=&quot;M5.30443 0.000614166C5.53287 -0.0256144 5.76493 -0.0390625 5.99984 -0.0390625C6.23474 -0.0390625 6.46681 -0.0256145 6.69525 0.000614107C7.10676 0.0478612 7.40206 0.419757 7.35481 0.831267C7.30756 1.24278 6.93567 1.53807 6.52416 1.49082C6.35239 1.4711 6.17745 1.46094 5.99984 1.46094C5.82223 1.46094 5.64729 1.4711 5.47552 1.49082C5.06401 1.53807 4.69212 1.24278 4.64487 0.831268C4.59762 0.419757 4.89292 0.0478613 5.30443 0.000614166ZM3.30344 1.3877C3.56084 1.71223 3.50642 2.18397 3.18189 2.44137C2.90757 2.65894 2.65894 2.90757 2.44137 3.18189C2.18397 3.50642 1.71223 3.56084 1.3877 3.30344C1.06317 3.04604 1.00875 2.5743 1.26615 2.24977C1.55517 1.88537 1.88537 1.55517 2.24977 1.26615C2.5743 1.00875 3.04604 1.06317 3.30344 1.3877ZM8.69624 1.3877C8.95364 1.06317 9.42538 1.00875 9.74991 1.26615C10.1143 1.55517 10.4445 1.88537 10.7335 2.24977C10.9909 2.5743 10.9365 3.04604 10.612 3.30344C10.2875 3.56084 9.81571 3.50642 9.55831 3.18189C9.34073 2.90757 9.09211 2.65894 8.81779 2.44137C8.49326 2.18397 8.43884 1.71223 8.69624 1.3877ZM11.1684 4.64487C11.5799 4.59762 11.9518 4.89292 11.9991 5.30443C12.0253 5.53287 12.0387 5.76493 12.0387 5.99984C12.0387 6.23474 12.0253 6.46681 11.9991 6.69525C11.9518 7.10676 11.5799 7.40206 11.1684 7.35481C10.7569 7.30756 10.4616 6.93567 10.5089 6.52416C10.5286 6.35239 10.5387 6.17745 10.5387 5.99984C10.5387 5.82223 10.5286 5.64729 10.5089 5.47552C10.4616 5.06401 10.7569 4.69212 11.1684 4.64487ZM0.831267 4.64487C1.24278 4.69212 1.53807 5.06401 1.49082 5.47552C1.4711 5.64729 1.46094 5.82223 1.46094 5.99984C1.46094 6.17745 1.4711 6.35239 1.49082 6.52416C1.53807 6.93567 1.24278 7.30756 0.831268 7.35481C0.419757 7.40206 0.0478613 7.10676 0.000614166 6.69525C-0.0256144 6.46681 -0.0390625 6.23474 -0.0390625 5.99984C-0.0390625 5.76493 -0.0256145 5.53287 0.000614107 5.30443C0.0478612 4.89292 0.419757 4.59762 0.831267 4.64487ZM1.3877 8.69624C1.71223 8.43884 2.18397 8.49326 2.44137 8.81779C2.65894 9.09211 2.90757 9.34073 3.18189 9.55831C3.50642 9.81571 3.56084 10.2875 3.30344 10.612C3.04604 10.9365 2.5743 10.9909 2.24977 10.7335C1.88537 10.4445 1.55517 10.1143 1.26615 9.74991C1.00875 9.42538 1.06317 8.95364 1.3877 8.69624ZM10.612 8.69624C10.9365 8.95364 10.9909 9.42538 10.7335 9.74991C10.4445 10.1143 10.1143 10.4445 9.74991 10.7335C9.42538 10.9909 8.95364 10.9365 8.69624 10.612C8.43884 10.2875 8.49326 9.81571 8.81779 9.55831C9.09211 9.34073 9.34073 9.09211 9.55831 8.81779C9.81571 8.49326 10.2875 8.43884 10.612 8.69624ZM4.64487 11.1684C4.69212 10.7569 5.06401 10.4616 5.47552 10.5089C5.64729 10.5286 5.82223 10.5387 5.99984 10.5387C6.17745 10.5387 6.35239 10.5286 6.52416 10.5089C6.93567 10.4616 7.30756 10.7569 7.35481 11.1684C7.40206 11.5799 7.10676 11.9518 6.69525 11.9991C6.46681 12.0253 6.23474 12.0387 5.99984 12.0387C5.76493 12.0387 5.53287 12.0253 5.30443 11.9991C4.89292 11.9518 4.59762 11.5799 4.64487 11.1684Z&quot;<br>          fill={fill}<br>        /&gt;<br>      &lt;/G&gt;<br>      &lt;Defs&gt;<br>        &lt;ClipPath id=&quot;clip0_2866_43368&quot;&gt;<br>          &lt;Rect width=&quot;12&quot; height=&quot;12&quot; fill=&quot;white&quot; /&gt;<br>        &lt;/ClipPath&gt;<br>      &lt;/Defs&gt;<br>    &lt;/Svg&gt;<br>  );<br>};</pre><p>Now this component accepts all PathProps, I am just using the fill prop so that I can change the color of the Icon.</p><p>One other change I would have done is to set the <strong>&lt;SVG /&gt;’s</strong> height and width to “100%”. Which makes the icon to stretch/squeeze based on the parent component.</p><p>I have my Icon component created for <a href="https://github.com/adaptui/react-native-tailwind">AdaptUI</a> library.</p><pre>import React, { forwardRef } from &#39;react&#39;;<br>import { View, ViewStyle } from &#39;react-native&#39;;<br>import { createComponent } from &#39;~/utils/createComponent&#39;;<br><br>export interface IconComponentProps {<br>  /**<br>   * Svg Icon<br>   */<br>  icon: JSX.Element;<br>  /**<br>   * Bounding Box style for Icon<br>   */<br>  style?: ViewStyle;<br>  /**<br>   * Icon Size<br>   */<br>  size?: 10 | 12 | 16 | 20 | 24 | 32 | number;<br>  /**<br>   * Icon Color<br>   * @default gray-600<br>   */<br>  color?: string;<br>}<br><br>const RNIcon: React.FC&lt;Partial&lt;IconComponentProps&gt;&gt; = forwardRef&lt;<br>  typeof View,<br>  Partial&lt;IconComponentProps&gt;<br>&gt;((props, ref) =&gt; {<br>  const { icon, style, size, color } = props;<br>  const iconAspectRatio = 1;<br><br>  return (<br>    &lt;View style={[style, { aspectRatio: iconAspectRatio, width: size }]}&gt;<br>      {/* @ts-ignore */}<br>      {React.cloneElement(icon, { fill: color })}<br>    &lt;/View&gt;<br>  );<br>});<br><br>RNIcon.displayName = &#39;RNIcon&#39;;<br><br>export const Icon = createComponent&lt;Partial&lt;IconComponentProps&gt;&gt;(RNIcon, {<br>  shouldMemo: true,<br>});</pre><p>With the SVG and the Icon component, I use it like this, we can tweak the sizes and color.</p><pre>&lt;Icon<br>  style={tailwind.style(&quot;my-1&quot;)}<br>  icon={&lt;Slot /&gt;}<br>  size={16}<br>  color=&quot;blue&quot;<br>/&gt;<br><br>&lt;Icon<br>  style={tailwind.style(&quot;my-1&quot;)}<br>  icon={&lt;Slot /&gt;}<br>  size={24}<br>  color=&quot;red&quot;<br>/&gt;<br><br>&lt;Icon<br>  style={tailwind.style(&quot;my-1&quot;)}<br>  icon={&lt;Slot /&gt;}<br>  size={32}<br>  color=&quot;green&quot;<br>/&gt;<br><br>&lt;Icon<br>  style={tailwind.style(&quot;my-1&quot;)}<br>  icon={&lt;Slot /&gt;}<br>  size={48}<br>  color=&quot;gray&quot;<br>/&gt;</pre><p>which would render something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*6qwtBHasoq3UMEvToGtH_w.png" /><figcaption>Slot Icons of varying styles</figcaption></figure><p>This way we can like tweak icon styles, sizes and seems like a robust way of handling icons with React Native.</p><h4>Loading/Empty State Placeholder</h4><p>Our apps always will have a Network layer, Api calls happen so we need to like fetch data, I think showing a blank full screen with a loading icon is one way to go about it but not a “great way”. I think we can give an idea to the users on how the containers fit or the loading happens.</p><p>We just need to pass a variable isLoading when the component is in loading state to render the “Shimmer” component. Here is a great package which can be used:</p><p><a href="https://www.npmjs.com/package/react-content-loader">react-content-loader</a></p><p>Or here is a cursor generated Shimmer Component.</p><pre>interface ShimmerProps {<br>  style?: ViewStyle;<br>  initialOpacity?: number;<br>  finalOpacity?: number;<br>}<br><br>const Shimmer: React.FC&lt;ShimmerProps&gt; = ({<br>  style,<br>  initialOpacity = 0.4,<br>  finalOpacity = 0.8,<br>}) =&gt; {<br>  const opacity = useSharedValue(initialOpacity);<br><br>  React.useEffect(() =&gt; {<br>    opacity.value = withRepeat(<br>      withTiming(finalOpacity, {<br>        duration: 800,<br>        easing: Easing.inOut(Easing.ease),<br>      }),<br>      -1,<br>      true,<br>    );<br>    // eslint-disable-next-line react-hooks/exhaustive-deps<br>  }, []);<br><br>  const animatedStyle = useAnimatedStyle(() =&gt; {<br>    return {<br>      opacity: opacity.value,<br>    };<br>  });<br><br>  return &lt;Animated.View style={[style, animatedStyle]} /&gt;;<br>};</pre><p>You can later arrange this into your component structure,</p><pre>export const SearchComponentShimmer: React.FC = () =&gt; {<br>  return (<br>    &lt;View<br>      style={tailwind.style(<br>        &quot;flex-row items-center border-[1px] border-gray-200 rounded-lg px-3 py-[14px] w-full&quot;,<br>      )}<br>    &gt;<br>      &lt;Shimmer<br>        style={tailwind.style(&quot;h-[24px] w-[24px] bg-gray-200 rounded-full&quot;)}<br>      /&gt;<br>      &lt;Animated.View style={tailwind.style(&quot;pl-3 flex-1&quot;)}&gt;<br>        &lt;Animated.View style={tailwind.style(&quot;flex flex-row justify-between&quot;)}&gt;<br>          &lt;Shimmer<br>            style={tailwind.style(&quot;h-[20px] w-[160px] bg-gray-200 rounded-lg&quot;)}<br>          /&gt;<br>          &lt;Shimmer<br>            style={tailwind.style(&quot;h-[20px] w-[45px] bg-gray-200 rounded-lg&quot;)}<br>          /&gt;<br>        &lt;/Animated.View&gt;<br>        &lt;Shimmer<br>          style={tailwind.style(<br>            &quot;mt-1.5 h-[16px] w-[180px] bg-gray-200 rounded-lg&quot;,<br>          )}<br>        /&gt;<br>      &lt;/Animated.View&gt;<br>    &lt;/View&gt;<br>  );<br>};</pre><p>So our component will render something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*34HGPF_dN1ISe8HI6gj_BA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*UeCvxS5ZGLsAks9mtCU4tg.gif" /><figcaption>A placeholder component with Icon, title subtitle and a info text with a very subtle shimmer</figcaption></figure><p>This is very subtle, I would suggest you to use the package I mentioned above!</p><p>Now, Where can we use this?</p><p>For example here is a Search Screen we built for <a href="https://nammayatri.in/">Namma Yatri</a>.</p><blockquote>Namma Yatri is a ride-hailing app, and we recently helped them transition the entire platform from PureScript to React Native — bringing a fresh new look and an improved user experience. Big shoutout to <a href="https://medium.com/u/23d9a033fed2">Software Mansion</a>, <a href="https://medium.com/u/56864999f09d">Mo Gorhom</a>’s Bottomsheet and other incredible libraries of React Native which made it happen. Go check it out :)</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SzCoGrLJ7_WXhmvkvjdbGQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g6HOFkmdL18PT3yw-nYocA.jpeg" /><figcaption>Search Container Placeholder ↔ Search Results having same structure</figcaption></figure><p>As we already have the structure of the Search Component, which is,</p><ol><li>An Icon</li><li>Title</li><li>Subtitle</li><li>Distance</li></ol><p>So this way we can give users a consistent layout of the final search result structure — this gives the users a clear mental model of what’s coming with very less distraction.</p><h4>iOS Smooth Corner Radius</h4><p>From <a href="https://github.com/facebook/react-native/commit/8993ffc82e8d4010d82dcb1d69c33a609bb2771a">this commit</a>, we can achieve the squircle border radius in React Native using the borderCurve prop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W0Jm5fdKCi3Jd8bEQWNapw.png" /><figcaption>Only for iOS.</figcaption></figure><p>Thanks to the PR author <a href="https://github.com/eric-edouard">Eric Edouard Amilhat</a> for getting this prop to React Native. I urge all developers to use this. :] (I am not sure if it is set by default)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*1O8Zlk4WN-c7R0uX" /><figcaption>Smooth Cornering in React Native. (img src from the <a href="https://github.com/facebook/react-native/pull/32017">PR</a>)</figcaption></figure><p>Well that’s it for now!</p><p>These are just some things which we can just be aware while trying to build mobile apps. Thank you for staying till the end :)</p><p>I hope this blog was resourceful.</p><p>This is <a href="https://twitter.com/_iam_karthik">Karthik</a> from <a href="http://timeless.co/">Timeless</a>.</p><p>At Timeless, we’re open to taking on new projects. If you’re someone looking to build something, from ideation to branding, MVP design, development, and launch., we’d love to collaborate. 💙</p><p>We’re also on the lookout for talented React Native engineers who share our passion for crafting high-quality mobile experiences, please do reach out to us. Thanks! 🚀</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=35464bb325d0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/mobile-app-checklist-basics-i-35464bb325d0">Mobile App Checklist Basics-I</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lead Capture System for Ditto]]></title>
            <link>https://medium.com/timeless/lead-capture-system-for-ditto-a4b7b8dc4684?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/a4b7b8dc4684</guid>
            <dc:creator><![CDATA[Udhaya Chandran]]></dc:creator>
            <pubDate>Fri, 09 May 2025 10:43:57 GMT</pubDate>
            <atom:updated>2025-05-08T08:30:41.345Z</atom:updated>
            <content:encoded><![CDATA[<p>Ditto, an insurance advisory platform, isn’t just about policies or paperwork. It’s about people. Advisor is the identity of Ditto.<br>We are designing lead capture system for entire Ditto website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M9yFgq9vxnPNpknTK9ht2g.png" /><figcaption>Previous widgets</figcaption></figure><p>Lead forms are often an afterthought — either annoying popups or bland footer modules.</p><h4>The Goal.<strong><br>The lead capture must be,</strong></h4><ol><li>Be non-intrusive yet high-converting</li></ol><p>2. Showcase the advisor as the identity of the brand</p><p>3. Visually communicate the brand’s promise of “going above and beyond”</p><p>4. Highlight Ditto’s attributes: <br>Insurance clarity &amp; simplicity, <br>Going above and beyond to help customers<br>Availability &amp; prioritising claim support</p><p>So we didn’t just redesign a widget. We reimagined how a small UI block could carry the weight of an entire brand.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MJ-krjozOrdX9TnG8La-vg.png" /></figure><h3>Specimen 01 Design</h3><p>We boiled Ditto’s core brand attributes into three guiding rules for the widget system:</p><p><strong>Make it effortless:</strong> Simplicity is trust. The layout, copy, and call-to-action should feel obvious, not overwhelming.</p><p><strong>Highlight human help:</strong> This isn’t just a form. It’s a window into a real conversation with an advisor who <em>cares</em>.</p><p><strong>Show commitment:</strong> Advisors at Ditto are known to go above and beyond — so our design had to escape the typical “boxed” boundaries.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwzh9wMZGoHpbTnnwsGhEg.gif" /></figure><h3>Design Decisions We Made</h3><h3>Advisor First</h3><p>We put advisors front and center — not as icons or thumbnails, but as full, smiling, trustworthy figures. In vertical widgets, the advisor <em>breaks the frame</em> to signal their willingness to go beyond. In horizontal variants, they anchor the section like a reassuring presence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iS08NWwHmWhn8g_fOAUtMw.png" /></figure><p>Applicable to all sizes and colors</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Uo4ABcZVr3ndtxTTD1-FQ.png" /></figure><h3>Context</h3><p>Giving right context to the user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lwh6my7qWyuy8qmCdzp3pg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Om4wotjICcapR3kMb9nzJw.gif" /></figure><h3>Subtle Visuals That Speak Loudly</h3><p>Light blue background for trust and approachability</p><p>Rounded corners, soft shadows for friendliness</p><p>Advisor portraits slightly fade at the bottom to create visual depth and focus on the face</p><h3>Specimen 02 Design</h3><h3>A More Conversational Capture</h3><p>While the calendar-style call widget is designed for intent-driven users, <strong>Specimen 2</strong> addresses a more spontaneous behavior — casual curiosity.</p><p>This WhatsApp-integrated lead capture widget is built around <strong>ease, empathy, and interactivity</strong>. Here’s the breakdown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jgUFLD2mH1vNfL-chqmw3Q.gif" /></figure><h3>Purpose:</h3><p>To help users casually ask questions — no pressure, no commitment. It’s for the unsure browser who’s not ready to “book a call,” but still has doubts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mi8NW569i3lG-3JvpPgCcQ.png" /></figure><p><strong>Social Proof by Design:</strong> The friendly advisor visual again builds human trust. You’re not chatting with a bot — it’s clearly a person who’ll respond.</p><p><strong>Color Psychology:</strong> The green CTA button is associated with WhatsApp and gives a signal of immediacy and action, while the light blue background softens the tone and makes it more welcoming.</p><h3>Why it Works:</h3><p><strong>Low-friction entry point</strong>: No need to choose time slots or give personal details upfront.</p><p><strong>Resonates with user mindset</strong>: Most users on a blog have vague doubts. This design acknowledges that and makes room for it.</p><p><strong>Smart defaults</strong>: We prefill or suggest most-asked questions to guide unsure users and reduce the effort of writing from scratch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HCND1dvLZ2FevWfoNbGvsQ.png" /></figure><h3>Specimen 03 Design</h3><h3>Your Partner In… Moments That Matter</h3><p>This specimen isn’t just a lead capture — it’s a <strong>trust anchor</strong>.</p><p>By shifting the narrative from <em>“What we offer”</em> to <em>“What we stand with you for,”</em> we turned a CTA block into a micro-testament of commitment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lBOmnj2CJGFgn0W49avFtg.png" /></figure><p>“<strong>Your Partner in</strong>” reframes Ditto’s role. They’re not sellers. They’re supporters — by your side across three crucial phases of the insurance journey:</p><p><strong>Advise</strong> — when you’re confused</p><p><strong>Application</strong> — when you’re applying</p><p><strong>Claim</strong> — when it matters most</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3LdFqDjzfac7gWiC7hJPA.gif" /></figure><p>Across all three specimens — the call booking module, the WhatsApp prompt, and the <em>Your Partner In</em> narrative — we didn’t just design widgets. We crafted <strong>interfaces of trust</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a4b7b8dc4684" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/lead-capture-system-for-ditto-a4b7b8dc4684">Lead Capture System for Ditto</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Illustration Breakdown 01: Making of the Insurance Awareness Illustration]]></title>
            <link>https://medium.com/timeless/illustration-breakdown-02-the-creative-process-behind-insurance-post-66b051c62b0e?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/66b051c62b0e</guid>
            <category><![CDATA[illustration]]></category>
            <category><![CDATA[metaphor]]></category>
            <category><![CDATA[insurance]]></category>
            <category><![CDATA[marketing]]></category>
            <category><![CDATA[creative-process]]></category>
            <dc:creator><![CDATA[Sri Krishna S]]></dc:creator>
            <pubDate>Mon, 10 Feb 2025 11:40:42 GMT</pubDate>
            <atom:updated>2025-04-26T09:57:23.516Z</atom:updated>
            <content:encoded><![CDATA[<h3>Making of the Insurance Awareness Illustration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RIvVb7vGD-5nJIimbHuiQ.jpeg" /></figure><h3>Did you know that 98% of Indians have the wrong insurance plan?</h3><p>That’s an eye-opening statistic. Many people invest in insurance policies, thinking they are financially secure, only to realize later that their coverage is inadequate or filled with hidden clauses.</p><p>This insight became the foundation of my latest illustration for Finnovate’s marketing campaign, aiming to highlight how unreliable insurance can leave policyholders frustrated and helpless.</p><p>In this blog, I’ll take you through the concept, symbolism, and creative decisions behind the illustration, turning a complex financial issue into a visual story.</p><h3>Concept</h3><p>When brainstorming for this campaign, I wanted to create an image that instantly resonates with anyone who has faced issues with their insurance plan. After exploring multiple ideas, I landed on a metaphorical yet direct representation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6aodvZSyeDdib00qDdbtkQ.gif" /><figcaption>Illustration Process</figcaption></figure><h4>A frustrated man sitting on an inflated balloon, covered in patches, with air still leaking out.</h4><h3>Symbolism</h3><ul><li><strong>The man with a laptop:</strong> Represents a modern customer who purchased an insurance plan online, only to realize its shortcomings later.</li><li><strong>The balloon as a seat: </strong>Symbolizes the insurance plan. It appears to support him, but is weak and unreliable.</li><li><strong>Patchwork on the balloon: </strong>Represents quick fixes, misleading promises, or hidden clauses that make the policy seem secure.</li><li><strong>Air leaking out:</strong> Despite the patches, the insurance plan is still failing when needed the most, much like a bad policy that doesn’t deliver in times of crisis.</li><li><strong>Frustrated expression:</strong> Captures the helplessness of policyholders when they discover their insurance doesn’t provide the protection they expected.</li></ul><p>I also considered alternative metaphors like a sinking life raft or a parachute with holes, but the balloon analogy felt the most relatable , something that looks fine on the surface but is fragile and failing.</p><h3>Composition &amp; Details</h3><p>Once the concept was finalized, I started sketching out the composition. The challenge was making the visual clear while maintaining a balance between humor and seriousness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DGxkpgUjuj859I2mCo9XmQ.png" /><figcaption>Thumbnail Sketch Composition</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CxCUAAEf-L_DvxCisO-uRQ.png" /></figure><h4>Key Design Choices:</h4><ul><li><strong>Layout Composition: </strong>I refine the overall layout in the initial stage with some rough thumbnails before sketching to ensure a well-structured composition and clear illustration placement.</li><li><strong>Illustration:</strong> I enlarged the patches to make them more noticeable and visually engaging. Also, the air leakage from the right to the left side enhances visibility and improves the overall composition.</li><li><strong>Typography:</strong> The message must be sharp and clear, aligning with Finnovate’s branding without overpowering the illustration. I chose a serif font for the main content to convey a human-centric and trustworthy feel, while a simple sans-serif font was used for the subtext to keep it direct and easy to read.</li><li><strong>Color Palette:</strong> I followed the brand’s color scheme, ensuring it worked well with the light and vibrant background for a smooth and visually appealing composition.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DcFc4AE7_XenUkENDwfWOA.png" /><figcaption>Color Palette</figcaption></figure><h3>Final Look</h3><p>To bring the final illustration to life, I explored how it would appear in real-world applications by creating banner mockups.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lugpi7LjLw2nvZdFGi7K1A.png" /><figcaption>Horizontal Usecase</figcaption></figure><p>This helped visualize its impact in different formats and ensured it aligned with Finnovate’s branding. Presenting these mockups provided a practical preview for clients and showcased how the design would function in actual marketing campaigns. I also scaled this final output in different layout dimensions to make sure it goes well with any banner dimensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yCABSaPd-9F_VR1YRDzycA.png" /><figcaption>Vertical Usecase</figcaption></figure><h3>Conclusion</h3><p>Designing this illustration was an exciting challenge that combined creative storytelling with financial insight. By using a relatable metaphor and careful design decisions, I was able to visually communicate the frustrations of dealing with bad insurance. The project not only helped me explore the power of visual storytelling but also reinforced the importance of making complex issues accessible to a wide audience.</p><blockquote><em>I hope you found this blog informative and inspiring. If you have any thoughts or feedback, please leave a comment below. Your support is greatly appreciated, and a “CLAP” would be a great encouragement for me to continue sharing my design process in the future.</em></blockquote><h3>Also, follow my illustration works on<br><a href="http://https//www.behance.net/Sri_Krishna_S/">Behance</a> | <a href="https://www.instagram.com/sri.krishna.s/?hl=en%2F">Instagram</a> | <a href="http://www.linkedin.com/in/-sri-krishna-s">LinkedIn</a> | <a href="http://https//dribbble.com/Sri_Krishna_S">Dribbble</a></h3><p>I’m Sri Krishna (Illustrator + Animator + Designer) from TIMELESS</p><h4>We build brands, products, and apps.<br>Follow <a href="https://medium.com/timeless">TIMELESS</a> for more design and development updates.</h4><h4>For inquiries and collaborations reach us at <a href="http://hello@timeless.co/">hello@timeless.co</a></h4><p>Documented with 💚 from TIMELESS</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66b051c62b0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/illustration-breakdown-02-the-creative-process-behind-insurance-post-66b051c62b0e">Illustration Breakdown 01: Making of the Insurance Awareness Illustration</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Behind the Frames: A Visual Tale of Hyperswitch in Motion]]></title>
            <link>https://medium.com/timeless/behind-the-frames-a-visual-tale-of-hyperswitch-in-motion-5860d2ff54b8?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/5860d2ff54b8</guid>
            <category><![CDATA[payment-apps]]></category>
            <category><![CDATA[motion-design]]></category>
            <category><![CDATA[animation]]></category>
            <category><![CDATA[gif-animation]]></category>
            <category><![CDATA[after-effects]]></category>
            <dc:creator><![CDATA[Sri Krishna S]]></dc:creator>
            <pubDate>Wed, 08 Jan 2025 11:20:07 GMT</pubDate>
            <atom:updated>2025-04-26T09:59:08.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tMb4oPhFYTfmPbVw8EyfYw.jpeg" /></figure><p>In the fast-evolving world of fintech, crafting a compelling narrative for a highly technical product can be both a challenge and an opportunity. When I was tasked with exploring a motion design marketing video for Hyperswitch, I saw it as a chance to blend storytelling with sleek animation to blend complex concepts into a visually engaging experience. This blog delves into my creative process, from the initial idea to the final polished video.</p><h4><strong>Product Brief</strong></h4><p>Hyperswitch simplifies payment processing for businesses by acting as a unified interface that connects merchants to multiple payment gateways and processors. Its key features, like smart routing, global payment integrations, and real-time analytics, help businesses optimize transactions, reduce costs, and improve success rates.</p><h4>Objective</h4><blockquote><em>To present these innovative features in a way that was not only visually captivating but also accessible to viewers ranging from seasoned payment professionals to newcomers exploring the product for the first time. The challenge was to condense technical details into a clear, engaging story that would resonate with all.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_g_5jDuO6hh7GqaeeREvng.jpeg" /></figure><h3>Finding Inspiration: Learning from the Best</h3><p>Since scripting wasn’t my forte, I turned to industry-leading examples for inspiration. One standout was <strong>Apple’s 2030 campaign video</strong>. Its seamless blend of scripting, visuals, and animation left a lasting impression on me. I studied the video over 25 times, analyzing its pacing, transitions, and minimalistic yet impactful color usage. This research gave me a foundation to approach the Hyperswitch project with clarity and confidence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*gHar2U1LVqQjJEZNg5q7Qw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*ld6B4tGPsuhTDtuOq9d6PQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*TJC_lJiQKXeFwJJEotxtDQ.png" /><figcaption>Script + Storyboard + Animation</figcaption></figure><h4>1. Scripting: Building the Narrative</h4><p>The script is the backbone of any video. For Hyperswitch, I began by breaking the content into 6 key segments:</p><ul><li><strong>Introduction</strong>: A crisp opening with three powerful words to define Hyperswitch.</li><li><strong>Pain Points</strong>: Highlighting the complexity of payment processing.</li><li><strong>The Solution</strong>: Introducing Hyperswitch and its unique features.</li><li><strong>Key Features</strong>: Focusing on no-code integration, smart routing, and global compliance.</li><li><strong>Impact</strong>: Showcasing the benefits like cost reduction, increased conversions, and ease of integration.</li><li><strong>Conclusion</strong>: Wrapping up with a bento-style visual recap inspired by Apple’s product launch videos.</li></ul><p>Using cards, I organized these ideas to refine the narrative. Each card represented a single thought or point to ensure clarity and focus.</p><h4>2. Storyboarding: Visualizing the Script</h4><p>Once the script was finalized, I moved to the storyboard phase. Storyboarding helped me break the narrative into individual frames, each accompanied by:</p><ul><li><strong>Voiceover</strong>: The audio corresponding to the visuals.</li><li><strong>Visual descriptions</strong>: Sketches and notes depicting the graphics and movements.</li><li><strong>Camera directions</strong>: Indications of zooms, pans, and transitions.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y2UzfOZ9Pls4E2F89wdmtg.png" /><figcaption>Storyboards with voiceover, visual descriptions in red color and camera direction</figcaption></figure><h4>3. Animation: Bringing the story to life</h4><p>With a clear storyboard, I began creating the assets for animation. Each element was designed to ensure a seamless flow between frames. My focus was on:</p><ul><li><strong>Smooth transitions</strong>: Ensuring each frame transitioned naturally to the next.</li><li><strong>Minimalistic design</strong>: Maintaining the same color palette and minimal design language to highlight key points.</li><li><strong>Dynamic movement</strong>: Keeping viewers engaged through thoughtful animations.</li></ul><p>I iterated on each scene, fine-tuning the pacing and alignment to ensure the video conveyed the script’s intent effectively.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cX-zQ0L43q0SvQGxVwOuDg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIdX1HggNfC9Oq4Nbrxw5w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EJCHGv1OCHWVPExmRBGzrw.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MnpV_PHwruEL8IEqJ9huig.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVO0YwY5-zibxKlJS_Cffg.gif" /></figure><h4>Challenges &amp; Learnings</h4><p>Every creative project comes with its hurdles. As Steve Jobs wisely said,</p><blockquote>”The only way to do great work is to</blockquote><blockquote>love what you do.”</blockquote><p>Finding the right opening with the script and perfecting the transitions were the most challenging for me. However, these struggles taught me invaluable lessons:</p><ul><li><strong>The power of iteration</strong>: Refining ideas repeatedly in the initial stage is key to achieving clarity and impact.</li><li><strong>Learning from the best</strong>: Analyzing industry leaders’ work can provide a wealth of inspiration.</li><li><strong>The importance of planning</strong>: A well-documented storyboard can streamline the animation process smoothly.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PKeKwkz7OmQLkIbCSZcuVw.gif" /></figure><h3>The Final Product</h3><p>The result was a polished video highlighting Hyperswitch’s innovative features while engaging viewers with its sleek transitions and concise narrative.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNg2mpUsYdrM&amp;type=text%2Fhtml&amp;schema=google&amp;display_name=YouTube&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNg2mpUsYdrM" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c63fd21053ebd61506400e3fcd6e35a3/href">https://medium.com/media/c63fd21053ebd61506400e3fcd6e35a3/href</a></iframe><h3>Reflections and Takeaways</h3><p>The challenge became an opportunity to focus on what truly matters: <strong>Impactful Storytelling</strong>. Through research, planning, and creative execution, I delivered a video showcasing Hyperswitch’s features that resonated much like a polished tech advertisement.</p><p>To fellow creatives, each project is an opportunity to grow and refine your craft. Embrace challenges, learn from the best, and trust your process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ehs8vPA1j8UJ41q0T_L35A.gif" /></figure><blockquote><em>I hope you found this blog informative and inspiring. If you have any thoughts or feedback, please leave a comment below. Your support is greatly appreciated, and a “</em><strong><em>CLAP</em></strong><em>” would be a great encouragement for me to continue sharing my design process in the future.</em></blockquote><h4>Also, follow my illustration works on<br><a href="http://https//www.behance.net/Sri_Krishna_S/">Behance</a> | <a href="https://www.instagram.com/sri.krishna.s/?hl=en%2F">Instagram</a> | <a href="http://www.linkedin.com/in/-sri-krishna-s">LinkedIn</a> | <a href="http://https//dribbble.com/Sri_Krishna_S">Dribbble</a></h4><p>I’m Sri Krishna (Illustrator + Animator + Designer) from <strong>TIMELESS</strong></p><h4>We build brands, products, and apps.<br>Follow <a href="https://medium.com/timeless">TIMELESS</a> for more design and development updates.</h4><h4>For inquiries and collaborations reach us at <a href="http://hello@timeless.co/">hello@timeless.co</a></h4><p>Documented with 🖤 from TIMELESS</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5860d2ff54b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/behind-the-frames-a-visual-tale-of-hyperswitch-in-motion-5860d2ff54b8">Behind the Frames: A Visual Tale of Hyperswitch in Motion</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mastering Nginx Reverse Proxying]]></title>
            <link>https://medium.com/timeless/mastering-nginx-reverse-proxying-f4f89017f68c?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/f4f89017f68c</guid>
            <category><![CDATA[nginx-proxy]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[MC Naveen]]></dc:creator>
            <pubDate>Tue, 31 Dec 2024 12:45:57 GMT</pubDate>
            <atom:updated>2024-12-31T12:46:30.060Z</atom:updated>
            <content:encoded><![CDATA[<p>Nginx is an amazing piece of software that can be used solely as a web server or reverse proxy. This article covers basic to advanced levels of reverse proxying with load-balancing techniques.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*A1EIytQPiSU8SckOE2BWIA.png" /></figure><p><strong>Installing Nginx</strong></p><p>If you’re using Ubuntu as your server operating system, you can install Nginx using the simple command. (This command varies if you’re using a different operating system)</p><pre>sudo apt install nginx</pre><p>Most web servers need port 80 and 443 to be open. Port 80 handles the incoming and outgoing HTTP traffic whereas 443 handles the HTTPS protocol.</p><p>If you’re using any firewall like UFW, make sure you have set the ports open.</p><p>Now if you visit your server IP, You’ll be greeted with this page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fmFDZjKQmWAmRwpcEPPuUw.png" /></figure><p>It means the nginx is successfully installed and working properly.</p><p>When the nginx is installed, It also creates a new directory called html inside /var/www of the system root directory.</p><p><strong>Important directory of nginx</strong></p><p>Once the nginx is installed, its configuration can be found in the /etc/nginx directory.</p><p>Configuration for every website we host on the server will be created in this location.</p><p>A simple configuration for a website will look like this</p><pre><br>server {<br>    location / {<br>        root /var/www/html;<br>    }<br>}</pre><p>This is called server block.</p><p>location / — Defines what happens when the root IP or domain is visited</p><p>root — Points to the directory where the request should responded with</p><p>For multiple websites, we can create multiple configuration files in the /etc/nginx/sites-available directory</p><p>After creating a configuration in /etc/nginx/sites-available directory, the configuration should be symlinked to /etc/nginx/sites-enabled directory to expose to the internet.</p><p>Nginx comes with a useful option to test and validate the present configuration.</p><p>You have to run ngnix -t to validate the current configuration.</p><h3><strong>Using Nginx as a Load Balancer</strong></h3><p>Nginx offers a feature to use as a Load Balancer. Let’s say you’re running multiple instances of the application and want to route the traffic automatically and switch between instances, You can easily do it with Nginx.</p><p>There are 5 load-balancing methods offered by nginx.</p><ol><li>Round Robin</li><li>Least Connection</li><li>IP Hash</li><li>Generic Hash</li><li>Least Time (Only available in Paid Version)</li></ol><p>Requests are routed evenly across the available instances</p><p>Requests are routed evenly across the available instances based on the available server load</p><pre>upstream backend {<br>   server localhost:3000;<br>   server localhost:3001;<br>}<br><br>server {<br>    location / {<br>      proxy_pass http://backend;<br>     }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*vaR0qkrtdEJ8lEdxbHKKUw@2x.png" /></figure><p><strong>Least Connection</strong></p><p>Incoming requests will be routed to the instance that has a less active connection</p><pre>upstream backend {<br>   least_conn;<br>   server localhost:3000;<br>   server localhost:3001;<br>}<br><br>server {<br>    location / {<br>      proxy_pass http://backend;<br>     }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*YH_RQW7d0nng7Q8yVgj_dA@2x.png" /></figure><p><strong>IP Hash</strong></p><p>This will route the request to the last connected instance based on the first three pairs of calculated hashed IP</p><pre>upstream backend {<br>   ip_hash;<br>   server localhost:3000;<br>   server localhost:3001;<br>}<br><br>server {<br>    location / {<br>      proxy_pass http://backend;<br>     }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*VQKhmwYV1tPtuDim1_c50Q@2x.png" /></figure><p><strong>Generic Hash</strong></p><p>Incoming requests will be routed to the user-defined hash key</p><pre>upstream backend {<br>   hash $request_uri consistent;<br>   server localhost:3000;<br>   server localhost:3001;<br>}<br><br>server {<br>    location / {<br>      proxy_pass http://backend;<br>     }<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*5y75iiZ_Qbomo6PaoEpkeQ@2x.png" /></figure><p>Nginx is managed using system services in a Debian-based distro. We can use systemctl to manage the services.</p><p>To start the Nginx service</p><pre>sudo service nginx start</pre><p>To stop the Nginx service</p><pre>sudo service nginx stop</pre><p>To restart the Nginx service</p><pre>sudo service nginx restart</pre><p>These are the required things to set up and run Nginx as a reverse proxy.</p><blockquote><em>This article is written by </em><a href="https://github.com/mcnaveen"><em>MC.Naveen</em></a><em> for </em><a href="https://timeless.co/"><em>Timeless</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f4f89017f68c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/mastering-nginx-reverse-proxying-f4f89017f68c">Mastering Nginx Reverse Proxying</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperpg design]]></title>
            <link>https://medium.com/timeless/hyperpg-design-83a8a242ee0e?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/83a8a242ee0e</guid>
            <dc:creator><![CDATA[Udhaya Chandran]]></dc:creator>
            <pubDate>Tue, 25 Jun 2024 06:59:25 GMT</pubDate>
            <atom:updated>2024-06-25T07:05:16.957Z</atom:updated>
            <content:encoded><![CDATA[<p>Hyperpg, a part of Juspay, is a payment aggregator designed to streamline and simplify online payments.</p><p>Hyperpg’s brand identity centres around a sine wave, symbolizing seamless, continuous, and efficient transactions. The sine wave represents the fluid and smooth nature of the payment solutions, capturing the essence of reliability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1ORMCGNnlJunMzFnqmMMvA.png" /></figure><p>The logotype is designed to represent the developer-friendly nature of the product. This also symbolises easy-to-integrate capabilities.</p><p><strong>Colour Scheme</strong>: The blue colour (#007BFF) represents trust, dependability, and professionalism, while the white sine wave adds a touch of simplicity and clarity.</p><p><strong>Typography</strong>: The logotype “hyperpg” is customised to look like a semi-mono type which we often see in the developer terminal.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MKV-PZCBaTZ0DK-b.png" /></figure><h4>Visual Elements</h4><p>The brand identity is rooted in the symbolism of the sine wave. This pattern is not just a design choice but a display of Hyperpg’s commitment to providing uninterrupted and efficient payment solutions.</p><p><strong>Sine Wave Pattern</strong>: The sine wave is the core visual element, representing the brand’s commitment to smooth and efficient payment solutions. This pattern can be used in various brand materials, including website graphics, marketing collateral, and product interfaces.</p><p><strong>Analog Touch</strong>: Incorporate elements that remind analog devices, such as sliders, dials, and gauges, to evoke a sense of precision and control in the user experience.</p><h4>Website Design</h4><p>While Hyperpg operates in the digital realm, the design philosophy incorporates an analog touch, precision instruments and control panels. This blend of digital &amp; analog should be evident in our website and product interfaces, where sliders, dials, and gauges create an intuitive user experience that is both modern and nostalgic.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F967115137%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F967115137&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1880132728-b1ba65df75bcc4321372fab7622fe5df3cd8fcd1a7e0a6d9d9386d794baa3f17-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1133" frameborder="0" scrolling="no"><a href="https://medium.com/media/36923bad03d813cc8094b33b586757b2/href">https://medium.com/media/36923bad03d813cc8094b33b586757b2/href</a></iframe><p>This is how the entire website statically can look like.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-EYB0UsLWlWmuOPierSfQQ.png" /></figure><h4>Brand touchpoint</h4><p>The same pattern has the potential to be used as a screen display to represent the processing status of transactions</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F967504670%3Fapp_id%3D122963&amp;dntp=1&amp;display_name=Vimeo&amp;url=https%3A%2F%2Fvimeo.com%2F967504670&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F1880579618-fb9e99a3a9fb23fa0c5cae43cdd87441ab486fffc925f60c03d6063481a9927f-d_1280&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1069" frameborder="0" scrolling="no"><a href="https://medium.com/media/185614a5b550b7e6a2154be5809bfcb6/href">https://medium.com/media/185614a5b550b7e6a2154be5809bfcb6/href</a></iframe><h4>Marketing visuals</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ppb9XYYC1PueF6pd.png" /></figure><h4>Iconography</h4><p>We have taken a unique direction where analog meets digital.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*CZYaq0MXGtVZvEjj.png" /></figure><p>It is exciting as we continue to explore a new representation of one of Juspay’s products. As always the right product demands the right branding.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=83a8a242ee0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/hyperpg-design-83a8a242ee0e">Hyperpg design</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 ways to improve your UI writing]]></title>
            <link>https://medium.com/timeless/10-ways-to-improve-your-ui-writing-cb3940dc93d2?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/cb3940dc93d2</guid>
            <category><![CDATA[uiux-designer]]></category>
            <category><![CDATA[microcopy]]></category>
            <category><![CDATA[ui-writing]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[product-design]]></category>
            <dc:creator><![CDATA[Deena Dhayalan]]></dc:creator>
            <pubDate>Tue, 19 Mar 2024 03:26:42 GMT</pubDate>
            <atom:updated>2024-03-19T12:21:08.335Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHBY-HqHBjskGz26se0v1A.png" /></figure><blockquote><em>Good UI writing helps users understand and navigate websites and apps easily and quickly. It’s like having clear signs on a road trip — it makes the journey smoother and more enjoyable for everyone involved.</em></blockquote><p>In this blog, we’re diving into the world of UI writing, breaking down ten essential strategies to make your digital platforms more user-friendly. From simplifying language to creating helpful error messages, we’ll show you how to make your website or app a breeze to use.</p><p>So, whether you’re a seasoned designer or just starting out, get ready to level up your UI writing game and wow your users!</p><p><strong>Key takeaways:</strong></p><ol><li>Improve UI writing by ensuring clarity, consistency, and hierarchy in language and design.</li><li>Craft error messages and button labels thoughtfully, employing user-centric language and concise wording.</li><li>Utilize microcopy and visual hierarchy to enhance user understanding and engagement, resulting in an optimal user experience.</li></ol><h3><strong>1. Make it Simple and Clear (talk like a friend)</strong></h3><p>Keep your language simple and to the point, ensuring users understand your message clearly. Avoid using complicated words or phrases that might make things confusing.</p><p>Think of it like talking to a friend — be straightforward and easy to understand. By using clear language, you’ll make your interface more accessible and user-friendly for everyone. <strong>Remember, clarity is key to a smooth and enjoyable user experience!</strong></p><p>Example: Instead of saying “Proceed checkout,” which might be unclear to some users, you can write “Complete your purchase.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X47c0UeoKuKKiXMs1qIfxw.png" /><figcaption>Make sure the user with Clear and simple text.</figcaption></figure><h3>2. Maintain consistency in tone</h3><p>Consistency is like sticking to a familiar tune — it keeps users in sync with your interface. By maintaining a uniform tone, style, and language, you create a cohesive experience that feels seamless.</p><p><strong>Think of it as following the same road signs throughout a journey</strong> — it helps users navigate smoothly without getting lost. Inconsistencies, like suddenly changing directions, can confuse users and lead to frustration. So, aim for consistency to build trust and keep users engaged from start to finish!</p><p>Example: If you’re using “Sign up” on one page, don’t switch to “Register” on another. Stick to one term to describe the same action consistently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ee39yKRuZEvpqV9hORTorA.png" /><figcaption><strong>“Sign up a screen with a consistency tone” </strong>real-time example from the Better Stack</figcaption></figure><h3>3. Organize Information Hierarchically</h3><p>Hierarchy is like arranging items on shelves — it helps users find what they need easily. By organizing information logically, with key messages upfront, you guide users through your interface effortlessly.</p><p><strong>Think of hierarchy as a roadmap guiding users through your content.</strong> By organizing information with clear headings and subheadings, users can easily navigate and find what they’re looking for. Ultimately, a well-structured hierarchy ensures users can quickly grasp the most important points, enhancing their overall experience.</p><p>Example: In a settings menu, use a larger font size or bold text for main categories like “Account Settings” and smaller text for subcategories like “Privacy Settings.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h6FH4CdzerUDezjSldqL2w.png" /><figcaption><strong>“Setting screen with hierarchy for subcategories” </strong>real-time example from the Luma</figcaption></figure><h3>4. Write in the Active Voice</h3><p>Using active voice is like speaking directly to your users, making your UI more engaging and straightforward.</p><p>Active voice energizes your messaging, enhancing user understanding and interaction. <strong>So, aim to infuse your UI with active language to keep users engaged and focused on the action at hand.</strong></p><p>Example: Instead of saying “Your request has been submitted,” use “You’ve successfully submitted your request.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UiQPGO6sC2HASRqc0JaUuA.png" /><figcaption><strong>“Active Voice for the payment successful modal” </strong>real-time example from the Gamma</figcaption></figure><h3>5. Craft informative and friendly error messages</h3><p>Error messages are like friendly guides that help users navigate through issues. Rather than simply pointing out mistakes, they offer clear instructions on how to resolve them.</p><p>By providing actionable solutions, users are empowered to address errors effectively, fostering a smoother user experience and reducing frustration. Crafting informative and friendly error messages is essential for guiding users through challenges and maintaining a positive interaction with your interface.</p><p><strong>Example: Instead of saying “Error: Invalid email address,” provide a suggestion like “Please enter a valid email address.”</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4WXbni7uvZVnKjA7kI1JQw.png" /><figcaption><strong>“friendly error message”</strong> real-time example from the Cloaked</figcaption></figure><h3>6. Use clear and action-oriented labels for buttons</h3><p>Button labels serve as signposts guiding users through actions within the interface. Clear and action-oriented labels communicate precisely what action the button will perform.</p><p><strong>Avoiding generic labels ensures users understand the purpose of each button without confusion.</strong> By choosing descriptive labels, users can navigate the interface confidently, enhancing usability and user satisfaction.</p><p>Example: Instead of using “OK” or “Continue,” use specific labels like “Save Changes” or “Proceed to Payment.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hl5FHOUv7Hdo3pd1NIE_mA.png" /><figcaption><strong>“Action-oriented label for save changes button”</strong> real-time example from the Luma</figcaption></figure><h3>7. Pay attention to microcopy</h3><p>Microcopy, those tiny snippets of text scattered throughout the interface, play a big role in shaping user experience.</p><p>From tooltips to button labels and form field placeholders, these subtle cues provide guidance and context for users. Paying attention to microcopy ensures that every word contributes to a smoother and more intuitive user journey.</p><p><strong>By crafting these small but impactful messages thoughtfully, you can enhance usability and user satisfaction across the interface.</strong></p><p>Example: Instead of using “Password,” clarify the requirement with microcopy like “Enter your password (minimum 8 characters).”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x7dR4CFuboywVv89TXWkNg.png" /><figcaption><strong>“Well used microcopy for the signup form”</strong> real-time example from the Spotify</figcaption></figure><h3>8. Frame UI text from the user’s perspective</h3><p>User-centric language shifts the focus of UI text from the system to the user, aligning with their needs and goals.</p><p>By using “You” and “Your,” the interface becomes more personalized, enhancing the user experience. Framing text from the user’s perspective ensures that interactions feel tailored and intuitive, fostering a deeper connection with the interface.</p><p><strong>Ultimately, user-centric language creates a more engaging and meaningful experience, driving satisfaction and loyalty.</strong></p><p>Example: Instead of saying “Notes Created Successfully,” use “Your notes have been successfully created.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tKgtCP-aHts03XLYlUQKSg.png" /><figcaption>“User’s perspective toast message” real-time example from the Luma</figcaption></figure><h3>9. Use Numerals and Capitalize Necessary Letters</h3><p>Using numerals instead of words not only saves space but also enhances readability for users. The aim is to ensure a comfortable and enjoyable experience, and numerals can significantly contribute to achieving this goal.</p><p>Avoid capitalizing every single letter, as it makes the text harder to read. Refrain from using all caps, except for logos or acronyms. Instead, opt for a more user-friendly approach, maintaining readability throughout the interface.</p><h3>10. Don’t Mix Pronouns in the Same Sentence</h3><p>Avoid using “you” and “your” alongside “me” and “my” in the same sentence to prevent confusion for readers. It’s best to avoid using them together when addressing the user, as it can disrupt clarity.</p><p>For instance, instead of saying, <br>Original: “Check your order history in My Account.”<br>Revised: <strong>“View order history in My Account.”</strong></p><h3>Here are some helpful tools:</h3><p>Ensuring clear and polished UI writing is crucial in the design process.</p><ol><li><strong>Hemingway Editor and Readable</strong> — Enhance readability for easier comprehension by your audience. (<a href="http://www.hemingwayapp.com/">Hemingway Editor</a>, <a href="https://readable.com/">Readable</a>)</li><li><strong>Trust My Paper and Grab My Essay — </strong>Utilize online writing services when time is limited for content creation. (<a href="https://www.trustmypaper.com/write-my-research-paper">Trust My Paper</a> and <a href="https://www.grabmyessay.com/research-papers">Grab My Essay</a>)</li><li><strong>Focus Writer and Google Docs — </strong>Leverage word processors with editing and formatting features to streamline your writing process. (<a href="https://gottcode.org/focuswriter/">Focus Writer</a> and <a href="https://docs.google.com/">Google Docs</a>)</li><li><strong>Studicus and Grammarly — </strong>Ensure error-free text with proofreading tools, eliminating grammar, spelling, and punctuation mistakes. (<a href="https://studicus.com/">Studicus</a> and <a href="https://www.grammarly.com/">Grammarly</a>)</li></ol><h3>In wrapping up,</h3><p>Improving your UI writing is like adding the perfect seasoning to your favorite dish — it enhances the overall experience!</p><p>By incorporating these ten friendly strategies, you’ll make navigating your digital platforms a breeze for your users.</p><p>Don’t forget to enlist the help of handy tools like Hemingway Editor and Grammarly to sprinkle some extra magic on your writing. With a touch of simplicity, clarity, and a user-first mindset, you’ll create an interface that users love to interact with, making their journey enjoyable from start to finish!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb3940dc93d2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/10-ways-to-improve-your-ui-writing-cb3940dc93d2">10 ways to improve your UI writing</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Pagination Component for the Gallery Carousel]]></title>
            <link>https://medium.com/timeless/building-a-pagination-component-for-the-gallery-carousel-c54dd3f7b60c?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/c54dd3f7b60c</guid>
            <category><![CDATA[interaction]]></category>
            <category><![CDATA[interaction-design]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[carousel]]></category>
            <category><![CDATA[reanimated]]></category>
            <dc:creator><![CDATA[Karthik Balasubramanian]]></dc:creator>
            <pubDate>Sat, 30 Sep 2023 16:56:44 GMT</pubDate>
            <atom:updated>2026-03-01T08:08:02.541Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3pbDoFRhzcaj3MAyCuNeg.png" /><figcaption>Blog cover by <a href="https://medium.com/u/51e64bb966d2">Fayas fs</a></figcaption></figure><p>Hey Everyone, this blog is a result of one of my readers&#39; comments asking for the Pagination Component for the Carousel I built a couple of blogs before.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/411/1*mpdc3dCNAdWENTm5zdUVUA.png" /></figure><p>Here we go. ✌🏽</p><p>We already have a Carousel with a Navigation Arrow Components.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*mlgDDTsLsosTTLRVy2OIvg.gif" /><figcaption>Final Carousel Component</figcaption></figure><p>Have a look at the previous blogs to get more context.</p><ul><li><a href="https://medium.com/timeless/building-a-gallery-carousel-in-react-native-using-reanimated-i-19b19e6b6b10">Building a Gallery Carousel in React Native using Reanimated — I</a></li><li><a href="https://medium.com/timeless/building-a-carousel-gallery-in-react-native-using-reanimated-ii-724ec3d94921">Building a Gallery Carousel in React Native using Reanimated — II</a></li></ul><p>Let&#39;s build our component!</p><h4><strong>Pagination Dots</strong></h4><p>Let us replace the Navigation arrows with our &lt;PaginationComponent /&gt;.</p><p>The component is a set of dots indicating the current position of the carousel.</p><p>So the purpose of it is to provide a visual indication of the no. of pages or slides and allow the user to move through the slides by interacting with it.</p><p>Upon some browsing, I found a pretty decent library which implements a similar Instagram Image Carousel Pagination.</p><p>Kudos to the creator 👏🏼</p><p><a href="https://github.com/felire/react-native-animated-dots-carousel">GitHub - felire/react-native-animated-dots-carousel: Package to configure your dots pagination carousel just like Instagram does</a></p><p>We can install this component and tweak it out use case and make it work.</p><p>Let us go ahead and install the library.</p><pre>yarn add react-native-animated-dots-carousel</pre><p>And let us place the code below our ScrollView component.</p><pre>&lt;Animated.View style={tailwind.style(&quot;flex items-center&quot;)}&gt;<br>  &lt;Animated.View<br>    style={tailwind.style(&quot;w-25 px-3.5 rounded-lg flex-row h-10&quot;)}<br>  &gt;<br>    &lt;AnimatedDotsCarousel<br>      activeIndicatorConfig={{<br>        color: tailwind.color(&quot;bg-blue-500&quot;) as string,<br>        margin: 3,<br>        opacity: 1,<br>        size: 8,<br>      }}<br>      inactiveIndicatorConfig={{<br>        color: tailwind.color(&quot;bg-gray-500&quot;) as string,<br>        margin: 3,<br>        opacity: 0.5,<br>        size: 8,<br>      }}<br>      decreasingDots={[<br>        {<br>          config: {<br>            color: tailwind.color(&quot;bg-gray-500&quot;) as string,<br>            margin: 3,<br>            opacity: 0.5,<br>            size: 6,<br>          },<br>          quantity: 1,<br>        },<br>        {<br>          config: {<br>            color: tailwind.color(&quot;bg-gray-500&quot;) as string,<br>            margin: 3,<br>            opacity: 0.5,<br>            size: 4,<br>          },<br>          quantity: 1,<br>        },<br>      ]}<br>      currentIndex={currentIndex}<br>      length={carouselItems.length}<br>      maxIndicators={2}<br>    /&gt;<br>  &lt;/Animated.View&gt;<br>&lt;/Animated.View&gt;</pre><p>You can go through the props to understand more.</p><p>I have copied and pasted his example code. Tweaked some style, and the only thing I should take care of is the value of currentIndex prop.</p><p>Create a useState() variable,</p><pre>  const [currentIndex, setCurrentIndex] = useState(0);</pre><p>And we can go ahead this code in the onMomentumEnd() in our scrollHandler</p><pre>onMomentumEnd: event =&gt; {<br>  const scrollOffset = event.contentOffset.x;<br>  scrollXOffset.value = withSpring(event.contentOffset.x, {<br>    damping: 18,<br>    stiffness: 120,<br>  });<br>  // Code for setting the Current Index for Pagination<br>  if (scrollOffset === scrollViewWidth - SCREEN_WIDTH) {<br>    runOnJS(setCurrentIndex)(carouselItems.length - 1);<br>    return;<br>  } else {<br>    runOnJS(setCurrentIndex)(Math.floor(scrollOffset / CARD_WIDTH));<br>  }<br>},</pre><p>Which will change the currentIndex based on our scroll.</p><p>Giving us our Pagination Dots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*VU1KlJ2eMOWHPNB6l6IzLQ.gif" /></figure><p>There you go, we have our Pagination Dots linked with our Gallery Carousel.</p><p>Hmm, you would think that&#39;s it. Uh.</p><p>Well, if I had to just discuss the library, I wouldn&#39;t be really writing this blog in the first place. 😉</p><p>Let us see if we can get the Long Press and Slide to Scroll Interaction here, similar to the Instagram.</p><h4><strong>Instagram Carousel Panning Gesture Interaction</strong></h4><p>We will wrap our component inside a &lt;GestureDetector /&gt;, and create a panGesture handler using Gesture.Pan(), activate it with a long press delay of 350ms, create an isGestureActive SharedValue variable to use it to handle the state of the Gesture.</p><pre>const panGesture = Gesture.Pan()<br>  .activateAfterLongPress(350)<br>  .onStart(() =&gt; {<br>    isGestureActive.value = withSpring(1);<br>  })<br>  .onChange(evt =&gt; {<br>    console.log(&quot;%c⧭&quot;, &quot;color: #e50000&quot;, evt.x);<br>  })<br>  .onEnd(() =&gt; {<br>    isGestureActive.value = withSpring(0);<br>  });<br><br>// Wrap Component with<br>&lt;GestureDetector gesture={panGesture}&gt;&lt;/GestureDetector&gt;</pre><p>Use the isGestureActive to animate the backgroundColor of the container, using useAnimatedStyle(), to say that the gesture is activated and we can swipe left/right to move the carousel.</p><pre>  const gestureActiveStyle = useAnimatedStyle(() =&gt; {<br>    return {<br>      backgroundColor: interpolateColor(<br>        isGestureActive.value,<br>        [0, 1],<br>        [&quot;white&quot;, &quot;#f1f1f1&quot;],<br>      ),<br>    };<br>  });</pre><p>Which will give us this smooth activation feedback.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/470/1*tkCuxkcXNz8163Es1pVuTg.gif" /><figcaption>Gesture Activation Feedback</figcaption></figure><p>Now to change the currentIndex we will have to interpolate the gesture in x-direction into indexes (0 to length of array) of the items.</p><p>We are clamping the gesture point from [0, 100] which is the width of the container. And you can see the event.x value while we are panning over the container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*nszMRIHRFXedofSRr5ruqw.gif" /></figure><p>So, similar to how we interpolated the Pan Gesture to build the Volume Interaction, we will do something similar here. Check that blog to know more.</p><p><a href="https://medium.com/timeless/creating-a-precision-slider-volume-interaction-part-ii-36525d200b52">Creating a Precision Slider: Volume Interaction Part — II</a></p><p>Coming back to our current gesture.</p><pre>  const isGestureActive = useSharedValue(0);<br>  const startX = useSharedValue(0);<br>  const currentXDistance = useSharedValue(0);<br>  const startingPosition = useSharedValue(0);<br><br>  const indexState = useSharedValue(0);<br><br>  const minX = 0;<br>  const maxX = 100;<br>  const panGesture = Gesture.Pan()<br>    .activateAfterLongPress(350)<br>    .onStart(evt =&gt; {<br>      isGestureActive.value = withSpring(1);<br>      startX.value = evt.x;<br>    })<br>    .onChange(evt =&gt; {<br>      const { x } = evt;<br>      if (x &gt;= minX &amp;&amp; x &lt;= maxX) {<br>        currentXDistance.value = x;<br>        const interpolatedValue = interpolate(<br>          currentXDistance.value,<br>          [minX, startX.value, maxX],<br>          [0, startingPosition.value, carouselItems.length - 1],<br>        );<br>        const computedValue = Math.round(interpolatedValue);<br>        indexState.value = computedValue;<br>        runOnJS(setCurrentIndex)(computedValue);<br>      }<br>    })<br>    .onEnd(() =&gt; {<br>      startingPosition.value = indexState.value;<br>    })<br>    .onFinalize(() =&gt; {<br>      isGestureActive.value = withSpring(0);<br>    });</pre><p>So you can see we have set the min and max to 0 and 100, respectively, you will have to change the same based on your case.</p><p>And we get the interpolated value, round it off and set it to our currentIndex.</p><p>Which will update our Interaction like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*C3rE-xUQZTiINSZ_eNQbtg.gif" /></figure><p>Well, we have added the gesture to our Pagination, now we will have to scroll to the currentIndex position.</p><p>So let us create a function which will do a manual scroll.</p><pre>  const handleManualScroll = (scrollOffset: number) =&gt; {<br>    scrollRef.current?.scrollTo({ x: scrollOffset, animated: true });<br>  };</pre><p>And we can call this function from the onChange gesture callback like this.</p><pre>runOnJS(handleManualScroll)(computedValue * CARD_WIDTH);</pre><p>Which will give us this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*WpQthq3xjOuMS--oouG-TA.gif" /></figure><p>Well, this is a pretty decent attempt in getting Instagram like Carousel Interaction.</p><p>I think if we avoid the extra animation like rotation and scaling down with scrolling, we can get a smoother and quicker change based on our gesture, which I will leave it to you guys, to decide.</p><p>We would have added a code to change the currentIndex onMomentumEnd of ScrollView, which would also change the index based on scrollOffset, which we can avoid when we have an active gesture going on.</p><p>And also the vice versa by setting the startingPosition to the index value which is changed by scrolling, like this.</p><pre>if (!isGestureActive.value) {<br>  if (scrollOffset === scrollViewWidth - SCREEN_WIDTH) {<br>    runOnJS(setCurrentIndex)(carouselItems.length - 1);<br>    startingPosition.value = carouselItems.length - 1;<br>    return;<br>  } else {<br>    runOnJS(setCurrentIndex)(Math.floor(scrollOffset / CARD_WIDTH));<br>    startingPosition.value = Math.floor(scrollOffset / CARD_WIDTH);<br>  }<br>}</pre><p>This wraps our Interaction.</p><p>I have removed the rotation animation. Changed some styles. Let’s see how our Interaction looks in comparison to the Instagram interaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*9TNa5eJTsQkIrUgN16_11A.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*8zOYRYjSax3wfe37Tqei8A.gif" /><figcaption>Comparing Interactions 🙈🙈🙈</figcaption></figure><p>If you want to slow down the index change based on the gesture, you can change your min and max values by extending the values on either X directions equally. I changed [0,100] to [-50,150], to slow the change of index and the user has to like move more in the direction to trigger the index change.</p><pre>const minX = -50;<br>const maxX = 150;</pre><p>Phew! That&#39;s it folks!</p><p>Have a look at the Expo Snack here.</p><p><a href="https://snack.expo.dev/@timelessco/carousel-with-pagination?platform=ios">Carousel with Pagination - Snack</a></p><p>Hope building the Interaction was fun. I hope you got some insights.</p><p>Happy Coding! ✌🏽</p><blockquote><em>This is </em><a href="https://twitter.com/_iam_karthik"><strong><em>Karthik</em></strong></a><em> from </em><a href="http://timeless.co/"><em>Timeless</em></a></blockquote><p>Recently, I reworked by Bento Profile. 🙈</p><p><a href="https://bento.me/iamkarthik">Karthik Balasubramanian</a></p><p>Please check it out as well! 🙃🙃🙃</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c54dd3f7b60c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/building-a-pagination-component-for-the-gallery-carousel-c54dd3f7b60c">Building a Pagination Component for the Gallery Carousel</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating illustrations for Scripbox]]></title>
            <link>https://medium.com/timeless/creating-illustrations-for-scripbox-27e6bec75a76?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/27e6bec75a76</guid>
            <category><![CDATA[branding]]></category>
            <category><![CDATA[illustration-system]]></category>
            <category><![CDATA[fintech]]></category>
            <category><![CDATA[illustration]]></category>
            <dc:creator><![CDATA[Neha Dinesh]]></dc:creator>
            <pubDate>Sat, 30 Sep 2023 15:17:03 GMT</pubDate>
            <atom:updated>2023-09-30T15:17:03.171Z</atom:updated>
            <content:encoded><![CDATA[<h3>Illustrations for Scripbox</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R1PwJ9yD0buRET2wSp1zfQ.png" /></figure><p>Scripbox is a portfolio planning service seeking to redefine wealth management. As the illustrator on the design team at Timeless, my task was to come up with a visual style and create several illustrations within that framework.</p><p>Let’s take a look at the basic framework developed to create illustrations in a unified and relatable manner.</p><h3>About the illustration system</h3><p>The illustrations needed to be subtle yet detailed in order to complement the UI. Playing with textures and creating a unique perspective within the illustrations helped create a one-of-a-kind simple style that could be used throughout the branding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*caHp6z6SBMaL8Jl6berwBA.png" /></figure><p>Two types of illustrations are created:</p><ul><li><strong>Headers:</strong> These are large scale, complex illustrations created to represent the various investment plans offered. They intend to capture the nature of the investment being offered while also creating a scalable composition that can be re-used throughout the app.</li><li><strong>Spots:</strong> These are smaller illustrations created to illustrate CTAs, empty states and more. They are mostly independent subjects without a background.</li></ul><h3>Headers</h3><p>Headers are composed of a main object, a few secondary objects, and a background surface such as a table or ground. The background surface/texture is left to fade without any hard edges, which helps the illustration to be placed in different UI scales and contexts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rY6D7wA4Ol2pexwWb6QGDw.png" /><figcaption>Three main compositional elements in a header illustration</figcaption></figure><p>The main object is composed straight on in the center, and the rest of the objects are aligned to create a slightly exaggerated perspective to give a sense of depth. Horizontal lines combined with strong diagonals on the secondary objects help create an exaggerated yet easily scalable perspective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CQdkBrQdYF0wTTuEerMwDg.png" /><figcaption>With the main object firmly in the centre, the secondary objects create a suitably aligned perspective</figcaption></figure><p><strong>Creating a scalable composition:</strong><br>Scripbox offers the user several portfolio options known as “plans” and “goals” which are referenced in different contexts throughout the app. The illustrations have been created with a clear distinction between main object, secondary objects and background. This main object can then be used in isolation in smaller cards, as well as to design the icons for these plans.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sBqVaxWOwD1D4Kq-i3vFMQ.png" /><figcaption>The main object being re-used in different ways across the app</figcaption></figure><h3>Spots</h3><p>Spot illustrations are used to accompany CTAs, empty states, and some card layouts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pCadZ43tFoEbpwTwKhLmCA.png" /></figure><h3>Recurring elements — creating a metaphor</h3><p>Certain objects are re-used in illustrations throughout the branding to help create a symbolic reference for the user to understand at a glance. Hands are used to denote the user, boxes to denote portfolios and investments, paper planes to denote payment, and so on.</p><p>This metaphorical representation helps bring to life concepts that otherwise might be too abstract and impersonal for the user to visualise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bxElkPtb0TJjmbS3-ydtAw.png" /><figcaption>Hands in the illustration always denote the user</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-TJDTnM3bBrTe-JSP-M5nQ.png" /><figcaption>By re-using objects, it is easy to denote the status of the payment process</figcaption></figure><p>After lots of experimentation, some textures were established as ideal for the kind of art style needed. These were reused as much as possible in all contexts to create a unified look.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wxs4Qyo1KmotpKZ4RIhKNQ.png" /><figcaption>Some of the recurring textures and line types used throughout the illustrations</figcaption></figure><h3>Illustration process</h3><p>Here’s a look at how an illustration is made, step by step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*LcV5NtXJPk_Pf2Qn25DIbQ.gif" /><figcaption>The different stages in creating an illustration</figcaption></figure><ul><li>The concept stage is used to throw around ideas for representation and see if they fit with the overall metaphorical visual language.</li><li>The refined sketch is made as a blueprint to finalise the shapes and details of the image.</li><li>The basic colours are added in to finalise a palette for the image.</li><li>Finally, the sketch is rendered with the established textures and shading brushes to create the final illustration.</li></ul><p>Throughout the process, it is important to <strong>place the sketches in the UI and check the visual balance.</strong> This goes a long way towards saving time by making any corrections in the early stages of the illustration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*R7WP0mqzYoXS0cfRVWvuog.png" /><figcaption>Check your illustrations in the context of the UI to see if everything balances out.</figcaption></figure><p>Thanks for reading! <br><a href="https://www.behance.net/gallery/177765277/Illustrations-for-Scripbox"><strong>Check out the Behance case study here.</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27e6bec75a76" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/creating-illustrations-for-scripbox-27e6bec75a76">Creating illustrations for Scripbox</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building AdaptUI Circular Progress]]></title>
            <link>https://medium.com/timeless/building-adaptui-circular-progress-704949899804?source=rss----51270e0e87a0---4</link>
            <guid isPermaLink="false">https://medium.com/p/704949899804</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[circularprogressindicator]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[reanimated]]></category>
            <category><![CDATA[components]]></category>
            <dc:creator><![CDATA[Karthik Balasubramanian]]></dc:creator>
            <pubDate>Sat, 30 Sep 2023 07:31:40 GMT</pubDate>
            <atom:updated>2023-11-05T17:20:33.828Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey all.</p><p>We at Timeless released a Design System <strong>Adapt</strong>, a couple of months back.</p><p><a href="https://www.figma.com/community/file/1108051488381095193">Figma</a></p><p>Later, we released an Alpha Version of the components in React Native.</p><p>The major dependencies with which the component system was built were:</p><ul><li><a href="https://github.com/jaredh159/tailwind-react-native-classnames">Tailwind CSS for React Native.</a></li><li>Reanimated</li><li>React Native Gesture Handler</li></ul><p>A lot of inspiration was taken from this beautiful video by William.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FY50CQfyFkGI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DY50CQfyFkGI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FY50CQfyFkGI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/1806d45cf29287694972727e7f613917/href">https://medium.com/media/1806d45cf29287694972727e7f613917/href</a></iframe><p>This blog will discuss how I developed the Circular Progress component with Reanimated and React Native SVG.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67hLuHCF-VznSe19fBl1PQ.png" /><figcaption>Blog cover by <a href="https://medium.com/u/51e64bb966d2">Fayas fs</a></figcaption></figure><p>As I build the component as part of the Open-Source Library, the code would have a set of props, primitive components which I will be using.</p><p>I will go about explaining the important code blocks from the component file.</p><p>Let us look at the props first, we will get an idea of what are requirements to get our circular progress.</p><pre>export type CircularProgressSizes = &quot;sm&quot; | &quot;md&quot; | &quot;lg&quot; | &quot;xl&quot;;<br><br>export type CircularProgressTheme = &quot;base&quot; | &quot;primary&quot;;<br><br>export interface CircularProgressProps extends BoxProps {<br>  /**<br>   * The size of the Circle<br>   * @default md<br>   */<br>  size: CircularProgressSizes;<br>  /**<br>   * The size of the Circle<br>   * @default base<br>   */<br>  themeColor: CircularProgressTheme;<br>  /**<br>   * Color of Progress value<br>   */<br>  progressTrackColor: string;<br>  /**<br>   * The Circle Base Track color<br>   */<br>  trackColor: string;<br>  /**<br>   * The `value` of the progress indicator.<br>   * If `null` the circular progress will be in `indeterminate` state<br>   * @default null<br>   */<br>  value?: number | null;<br>  /**<br>   * The minimum value of the progress<br>   * @default 0<br>   */<br>  min: number;<br>  /**<br>   * The maximum value of the<br>   * @default 100<br>   */<br>  max: number;<br>  /**<br>   * Hint for the Meter<br>   */<br>  hint: string;<br>}</pre><p>So first we need to decide if this circular progress should run indefinitely or based on a value. So we do an Indeterminate Check!</p><pre>// Indeterminate Check<br>const isIndeterminate = React.useMemo(<br>  () =&gt; value === null || value === undefined,<br>  [value],<br>);</pre><p>We will be using react-native-svg for &lt;Circle /&gt; and react-native-reanimated for our Animation.</p><p>As we said, it is Circular progress, we will set the parameters of the Circle.</p><pre>// Circle parameters<br>const radius = 44;<br>const circleCircumference = 2 * Math.PI * radius;</pre><p>Now, there are two properties of the &lt;Circle /&gt; which we will be manipulating to get our Circular Progress.</p><ol><li>strokeDasharray</li><li>strokeDashoffset</li></ol><p>Let me quickly tell you what both are.</p><blockquote>The stroke-dasharray property in CSS sets the length of dashes in the stroke of SVG shapes. More specifically, it sets the length of a <em>pattern of alternating dashes and the gaps between them</em>.</blockquote><p>Lear more <a href="https://css-tricks.com/almanac/properties/s/stroke-dasharray/">here</a>.</p><blockquote>The stroke-dashoffset property in CSS defines the location along an SVG path where the dash of a stroke will begin. The higher the number, the further along the path the dashes will begin.</blockquote><p>Learn more <a href="https://css-tricks.com/almanac/properties/s/stroke-dashoffset/">here</a>.</p><p>Let us code our Circular Progress component.</p><p>The render code:</p><pre>&lt;AnimatedBox<br>  ref={ref}<br>  style={[circularProgressBoxDimensions, animatedSvgStyle]}<br>  {...otherProps}&gt;<br>  &lt;Svg width=&quot;100%&quot; height=&quot;100%&quot; viewBox={&#39;0 0 100 100&#39;}&gt;<br>    &lt;G rotation={&#39;-90&#39;} origin=&quot;50, 50&quot;&gt;<br>      &lt;Circle<br>        stroke={&quot;#e5e7eb&quot;}<br>        strokeWidth={strokeWidth}<br>        fill=&quot;transparent&quot;<br>        r={radius}<br>        cx={50}<br>        cy={50}<br>      /&gt;<br>      {isIndeterminate &amp;&amp; (<br>        &lt;AnimatedCircle<br>          stroke={&#39;#000000&#39;}<br>          strokeWidth={strokeWidth}<br>          fill=&quot;transparent&quot;<br>          r={radius}<br>          cx={50}<br>          cy={50}<br>          strokeLinecap=&quot;round&quot;<br>          strokeDasharray={`${circleCircumference} ${circleCircumference}`}<br>          animatedProps={indeterminateAnimatedCircularProgress}<br>        /&gt;<br>      )}<br>      {!isIndeterminate &amp;&amp; (<br>        &lt;AnimatedCircle<br>          stroke={&#39;#202020&#39;}<br>          strokeWidth={strokeWidth}<br>          fill=&quot;transparent&quot;<br>          r={radius}<br>          cx={50}<br>          cy={50}<br>          strokeLinecap=&quot;round&quot;<br>          strokeDasharray={`${circleCircumference} ${circleCircumference}`}<br>          animatedProps={animatedCircleProps}<br>        /&gt;<br>      )}<br>    &lt;/G&gt;<br>  &lt;/Svg&gt;<br>  {!isIndeterminate &amp;&amp; hint &amp;&amp; (<br>    &lt;View<br>      style={[<br>        StyleSheet.absoluteFillObject,<br>        {<br>          justifyContent: &#39;center&#39;,<br>          alignContent: &#39;center&#39;,<br>          backgroundColor: &#39;transparent&#39;,<br>        },<br>      ]}&gt;<br>      &lt;Text style={styles.text}&gt;{hint}&lt;/Text&gt;<br>    &lt;/View&gt;<br>  )}<br>&lt;/AnimatedBox&gt;</pre><p>Let us break it down.</p><p>Starting with &lt;AnimatedBox /&gt; a wrapper component, which is similar to &lt;Animated.View /&gt;.</p><p>Next comes the &lt;Svg /&gt; component from the react-native-svg library which has the height and width of “100%” and the dimensions are set in the wrapper component with circularProgressBoxDimensions.</p><pre>const circularProgressBoxDimensions = {<br>  width: hint ? 80 : 28,<br>  height: hint ? 80 : 28,<br>};</pre><p>The next is the &lt;G /&gt;, which represents a group element inside the SVG. It&#39;s used to group multiple SVG elements together. Here, it&#39;s rotated by -90 degrees around the point (50, 50).</p><p>And next is &lt;Circle /&gt;, which represents the track of our progress indicator, with stroke color of “#e5e7eb”, a specified strokeWidth, and is centered at (50, 50) and radius which is 44.</p><p>Now comes up the split of two cases to handle, Indeterminate and Determinate (which is based on progress value). Let us take a look at both.</p><h4>Determinate Circular Progress</h4><p>The code is something like this:</p><pre>&lt;AnimatedCircle<br>  stroke={<br>    progressTrackColor<br>      ? progressTrackColor<br>      : gc(<br>          cx(<br>            circularProgressTheme.themeColor[themeColor]<br>              ?.progressTrackColor,<br>          ),<br>        )<br>  }<br>  strokeWidth={strokeWidth}<br>  fill=&quot;transparent&quot;<br>  r={radius}<br>  cx={50}<br>  cy={50}<br>  strokeLinecap=&quot;round&quot;<br>  strokeDasharray={`${circleCircumference} ${circleCircumference}`}<br>  animatedProps={animatedCircleProps}<br>/&gt;</pre><p>It is again a &lt;Circle /&gt;, placed on top of the track. Avoid the prop stroke, which comes from the library/theme of AdaptUI.</p><p>&lt;AnimatedCircle /&gt; is created using the createAnimatedComponent() from Reanimated.</p><pre>const AnimatedCircle = Animated.createAnimatedComponent(Circle);</pre><p>We set the radius, center points and the strokeLinecap (it is how the starting and ending points of a border are on the SVG shapes, get to know more <a href="https://css-tricks.com/almanac/properties/s/stroke-linecap/">here</a>).</p><p>We set the strokeDasharray to the circumference of the circle and animate the strokeDashoffset to get the feel that the circle track value is being filled.</p><p>We use one of reanimated’s hooks, useAnimatedProps() which allows us to create animated properties that can be passed to the components. Here we will be changing the strokeDashoffset.</p><p>This progress is based on a value, so we write a certain code which converts a value in terms of 100, which is percent. We do that by getting the max-min values from the user, which is 100 and 0 by default.</p><p>If not, we convert and calculate the valuePercentage</p><pre>valuePercentage = ((progressValue.value - min) * 100) / (max - min);</pre><p>And use this to calculate our strokeDashoffset value,</p><pre>strokeDashoffset = circleCircumference - (circleCircumference * valuePercentage) / 100;</pre><p>This is the length of dash offset, which represents the percentage of completion, and we use withSpring() to give it a slight bounce while animating.</p><pre>const animatedCircleProps = useAnimatedProps(() =&gt; {<br>  /**<br>   * Converting a value to percentage based on lower and upper bound values from props<br>   *<br>   * value =&gt; the value in number<br>   * min =&gt; the minimum value<br>   * max =&gt; the maximum value<br>   */<br>  const valuePercentage = ((progressValue.value - min) * 100) / (max - min);<br>  const strokeDashoffset =<br>    circleCircumference - (circleCircumference * valuePercentage) / 100;<br>  return {<br>    strokeDashoffset: withSpring(strokeDashoffset, SPRING_CONFIG),<br>  };<br>});</pre><p>This is our determinate circular progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*HAd3ch1YnUyaUS7AdfTGNw.gif" /><figcaption>Value-based circular progress</figcaption></figure><h4>In-Determinate Circular Progress</h4><p>The render code for the same looks as this:</p><pre>&lt;AnimatedCircle<br>  stroke={&#39;#000000&#39;}<br>  strokeWidth={strokeWidth}<br>  fill=&quot;transparent&quot;<br>  r={radius}<br>  cx={50}<br>  cy={50}<br>  strokeLinecap=&quot;round&quot;<br>  strokeDasharray={`${circleCircumference} ${circleCircumference}`}<br>  animatedProps={indeterminateAnimatedCircularProgress}<br>/&gt;</pre><p>Similar to the determinate animation, we manipulate, the strokeDashoffset of the &lt;Circle /&gt; element.</p><pre>const indeterminateAnimatedCircularProgress = useAnimatedProps(() =&gt; {<br>  return {<br>    strokeDashoffset: interpolate(<br>      progress.value,<br>      [0, 0.5, 1],<br>      [0, -circleCircumference, -(circleCircumference * 2)]<br>    ),<br>  };<br>});</pre><p>The above code is used to interpolate the strokeDashoffset value based on a SharedValue variable, progress with input range [0, 0.5, 1] and output range to [0, -circleCircumference, -(circleCircumference * 2)].</p><p>When progress.value is 0, the strokeDashoffset is 0, when progress.value is 0.5, the strokeDashoffset is -circleCircumference (which likely represents half the circumference of the circle), and when progress.value is 1, the strokeDashoffset is -(circleCircumference * 2), indicating a full circle.</p><p>And we use the withRepeat() to loop our animation.</p><pre>progress.value = withRepeat(<br>  withTiming(1, {<br>    duration: 1500,<br>    easing: Easing.linear,<br>  }),<br>  -1,<br>  false,<br>  (finished) =&gt; {<br>    if (!finished) {<br>      progress.value = 0;<br>    }<br>  }<br>);</pre><p>In the above code, we do a loop in animation where the progress value goes from 0 to 1 indefinitely using a withTiming(), with a reverse option set to false.</p><p>We call this inside the useEffect() and only when isIndeterminate is true.</p><p>Let us see how our animation looks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*QvUpFjYLsnj4NfF6G61K1g.gif" /><figcaption>InDeterminate Animation</figcaption></figure><p>Well, something is missing.</p><p>Let us rotate the whole container similar to animating the progress value, creating a rotate SharedValue variable.</p><pre>rotate.value = withRepeat(<br>  withTiming(1, {<br>    duration: 1000,<br>    easing: Easing.bezier(0.4, 0, 0.2, 1),<br>  }),<br>  -1,<br>  false,<br>  (finished) =&gt; {<br>    if (!finished) {<br>      rotate.value = 0;<br>    }<br>  }<br>);</pre><p>And use this to rotate the full SVG wrapper container, by setting it in styles using useAnimatedStyle() from Reanimated.</p><pre>const animatedSvgStyle = useAnimatedStyle(() =&gt; {<br>  const rotateValue = interpolate(rotate.value, [0, 1], [0, 360]);<br>  return {<br>    transform: [<br>      {<br>        rotate: `${rotateValue}deg`,<br>      },<br>    ],<br>  };<br>});</pre><p>Now, with this set to our &lt;AnimatedBox /&gt;, let&#39;s see how our animation looks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*luGF-x7CLrX1o-AUg1o7dA.gif" /></figure><p>Well, well! This is neat.</p><p>I hope you would have got an understanding how to animate SVG components in React Native using Reanimated.</p><p>Take a look at the component here in AdaptUI Open-Source library, which is still in its alpha version, a WIP.</p><p>There are some minute changes I did to the component which will updated, and a new alpha version will be released soon. Writing the blog has made me refactor the component in certain aspects.</p><p><a href="https://github.com/adaptui/react-native-tailwind/blob/main/docs/circular-progress.md">react-native-tailwind/docs/circular-progress.md at main · adaptui/react-native-tailwind</a></p><blockquote><em>This is </em><a href="https://twitter.com/_iam_karthik"><strong><em>Karthik</em></strong></a><em> from </em><a href="http://timeless.co/"><em>Timeless</em></a></blockquote><p>I hope you found this blog post helpful and informative. If you have any feedback or suggestions, please leave a comment below. I’d love to hear your thoughts and opinions on the topic.</p><p>And if you have any ideas for future blog posts, please let me know! I’m constantly looking for new and interesting topics to explore.</p><p>Thank you for reading, and I look forward to hearing from you. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=704949899804" width="1" height="1" alt=""><hr><p><a href="https://medium.com/timeless/building-adaptui-circular-progress-704949899804">Building AdaptUI Circular Progress</a> was originally published in <a href="https://medium.com/timeless">Timeless</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>