<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Muazu Abu on Medium]]></title>
        <description><![CDATA[Stories by Muazu Abu on Medium]]></description>
        <link>https://medium.com/@muazuabu?source=rss-33d6dbf92814------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Gu66Xjefvp7tULc6i_qILw.jpeg</url>
            <title>Stories by Muazu Abu on Medium</title>
            <link>https://medium.com/@muazuabu?source=rss-33d6dbf92814------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:10:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@muazuabu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[10X your speed in styling React Native with Tailwind Css]]></title>
            <link>https://medium.com/@muazuabu/10x-your-speed-in-styling-react-native-with-tailwind-css-3fdbe26400fa?source=rss-33d6dbf92814------2</link>
            <guid isPermaLink="false">https://medium.com/p/3fdbe26400fa</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[tailwind-css]]></category>
            <dc:creator><![CDATA[Muazu Abu]]></dc:creator>
            <pubDate>Fri, 22 Jul 2022 18:14:32 GMT</pubDate>
            <atom:updated>2022-07-22T18:14:32.699Z</atom:updated>
            <content:encoded><![CDATA[<p>10X your speed in styling React Native apps with Tailwind Css😮</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e67y_I9fLAILsPREX9mQ5g.png" /></figure><p>Tailwind CSS has given us a lot of freedom in the layout of web components. As a result, it has gained widespread acceptability among developers, industry participants, and businesses.</p><p>Tailwind CSS is a low-level, utility-first CSS framework for quickly creating bespoke user interfaces.</p><p>React Native, on the other hand, enables the development of cross-platform applications using JavaScript.</p><h3><strong>Styling In React Native</strong></h3><p>There are several methods to style:</p><ul><li>Stylesheet</li><li>CSS module</li><li>UI libraries(I love <a href="https://nativebase.io/">Native base</a> for the record 😘)</li></ul><p>but today we will be looking at how to style React Native mobile applications with tailwind CSS. Various handy packages integrate Tailwind Power into React Native. Here we would use the <a href="https://www.npmjs.com/package/tailwindcss-react-native">react-native-tailwindcss</a></p><blockquote>This Setup flow use Babel(which has the smallest setup and best out-of-the-box experience), one of the several setups available. read more on setups <a href="https://tailwindcss-react-native.vercel.app/compilation/cli-native">here</a> <br><strong>Prerequisites: The following instructions presume you already have an active React Native app.</strong></blockquote><h4><strong>Step one:</strong> install the required package</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*2hVjUuYMwaW9tqr9w4oY_w.png" /></figure><h4>Step Two: Setup Tailwind CSS in tailwind.config.js</h4><p>tailwindcss requires a tailwind.config.js file with the content section set to include the paths to all of your components as well as any additional source files containing Tailwind class names. If you are not familiar with Tailwind CSS; Read more here <a href="https://tailwindcss.com/docs/configuration">Configuration</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/734/1*d-vpXVnCic-kxJx4E78cAw.png" /></figure><h4>Step Three: Add the Tailwind Provider in App.js</h4><p>Add TailwindProvider to your application’s top level. The TailwindProvider is responsible for creating the context for reactive styles and atomic style objects. <em>Go into your App.js and insert the imported Tailwind provider</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/742/1*RkCvOiWxVO-xxI4bFH1miw.png" /></figure><h4>Step Four: configure babel.config.js</h4><p>Add the below plugin to your babel.config.js file</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*J1PFZBG1UTzciN7-l9BOiA.png" /></figure><h4>and Yes!!😅, That’s it, Start styling with Tailwind CSS in your mobile development</h4><pre><em>// You can use this example of a restaurant card Ui to test.<br>import</em> { <em>View</em>, <em>Text</em>, <em>Touchable</em>, <em>Image</em> } <em>from</em> &quot;react-native&quot;;</pre><pre><em>import</em> <em>React</em> <em>from</em> &quot;react&quot;;</pre><pre><em>import</em> { <em>TouchableOpacity</em> } <em>from</em> &quot;react-native&quot;;</pre><pre><em>import</em> { <em>LocationMarkerIcon</em>, <em>StarIcon</em> } <em>from</em> &quot;react-native-heroicons/outline&quot;;</pre><pre><em>const RestaurantCard = ({</em></pre><pre>id<em>,</em></pre><pre>imgUrl<em>,</em></pre><pre>title<em>,</em></pre><pre>rating<em>,</em></pre><pre>genre<em>,</em></pre><pre>address<em>,</em></pre><pre>short_description<em>,</em></pre><pre>dishes<em>,</em></pre><pre>long<em>,</em></pre><pre>lat<em>,</em></pre><pre><em>}) =&gt; {</em></pre><pre><em>return (</em></pre><pre><em>&lt;</em>TouchableOpacity<em> className=</em>&quot;mr-3 bg-white shadow rounded-2xl &quot;<em>&gt;</em></pre><pre><em>&lt;</em>Image<em> source={{ uri: </em>imgUrl<em> }} className=</em>&quot;h-36 w-64 rounded-t-2xl &quot;<em> /&gt;</em></pre><pre><em>&lt;</em>View<em> className=</em>&quot;px-3 pb-4&quot;<em>&gt;</em></pre><pre><em>&lt;</em>Text<em> className=</em>&quot;font-bold text-lg pt-2&quot;<em>&gt;{</em>title<em>}&lt;/</em>Text<em>&gt;</em></pre><pre><em>&lt;</em>View<em> className=</em>&quot;flex-row items-center space-x-1&quot;<em>&gt;</em></pre><pre><em>&lt;</em>StarIcon<em> color=</em>&quot;green&quot;<em> opacity={0.5} size={22} /&gt;</em></pre><pre><em>&lt;</em>Text<em> className=</em>&quot;text-xs text-gray-500 &quot;<em>&gt;</em></pre><pre><em>&lt;</em>Text<em> className=</em>&quot;text-green-500&quot;<em>&gt;{</em>rating<em>}&lt;/</em>Text<em>&gt; · {</em>genre<em>}</em></pre><pre><em>&lt;/</em>Text<em>&gt;</em></pre><pre><em>&lt;/</em>View<em>&gt;</em></pre><pre><em>&lt;</em>View<em> className=</em>&quot;flex-row items-center space-x-1 &quot;<em>&gt;</em></pre><pre><em>&lt;</em>LocationMarkerIcon<em> size={22} color=</em>&quot;gray&quot;<em> opacity={0.5} /&gt;</em></pre><pre><em>&lt;</em>Text<em> className=</em>&quot;text-xs text-gray-500&quot;<em>&gt;Nearby · {</em>address<em>}&lt;/</em>Text<em>&gt;</em></pre><pre><em>&lt;/</em>View<em>&gt;</em></pre><pre><em>&lt;/</em>View<em>&gt;</em></pre><pre><em>&lt;/</em>TouchableOpacity<em>&gt;</em></pre><pre><em>);</em></pre><pre><em>}</em>;</pre><pre><em>export</em> <em>default</em> RestaurantCard;</pre><h3><strong>Conclusion</strong></h3><p>Overall, Tailwind CSS is a promising option for decorating React Native applications with several advantages. Instead of utilizing pure CSS or styled components, Tailwind CSS enables shortcuts to style our application with less effort.</p><p>Connect with me on <a href="https://www.linkedin.com/in/muazu/">Linkedin</a>, Follow me on <a href="https://twitter.com/muazuabu_">Twitter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3fdbe26400fa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>