<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdullah Nasir</title>
    <description>The latest articles on DEV Community by Abdullah Nasir (@abdullah_nasir_98b2b478ee).</description>
    <link>https://dev.to/abdullah_nasir_98b2b478ee</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3574097%2Ff6824593-81ba-47e5-ae66-3c7b0fd5a066.png</url>
      <title>DEV Community: Abdullah Nasir</title>
      <link>https://dev.to/abdullah_nasir_98b2b478ee</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdullah_nasir_98b2b478ee"/>
    <language>en</language>
    <item>
      <title>How to setup splash screen in react native expo</title>
      <dc:creator>Abdullah Nasir</dc:creator>
      <pubDate>Wed, 22 Oct 2025 10:57:44 +0000</pubDate>
      <link>https://dev.to/abdullah_nasir_98b2b478ee/how-to-setup-splash-screen-in-react-native-expo-10e2</link>
      <guid>https://dev.to/abdullah_nasir_98b2b478ee/how-to-setup-splash-screen-in-react-native-expo-10e2</guid>
      <description>&lt;p&gt;This post demonstrate that how you can configure splash screen and app icon in your react native expo project.&lt;/p&gt;

&lt;p&gt;First you have to install the package of splash screen in your app&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx expo install expo-splash-screen
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After it you have to go the official Figma template of the expo, Where you be able to make your own icon and splash screen for your app, After the customization export your icons from there and get it in you project then use it your &lt;strong&gt;icon section&lt;/strong&gt; and &lt;strong&gt;splash icon&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
Here this is the official link of that template :   &lt;a href="https://www.figma.com/community/file/1466490409418563617" rel="noopener noreferrer"&gt;Figma template.&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And it will get you into this page where you be able to customize splash screen and App icon as per your choice &lt;/p&gt;

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

&lt;p&gt;Then you have to setup your &lt;strong&gt;app.json&lt;/strong&gt; file and its should be look like this because from above version of expo &lt;code&gt;52&lt;/code&gt; your splash screen configuration should look like this.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;app.json&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "expo": {
    "plugins": [
      [
        "expo-splash-screen",
        {
          "backgroundColor": "#232323",
          "image": "./assets/splash-icon.png",
          "dark": {
            "image": "./assets/splash-icon-dark.png",
            "backgroundColor": "#000000"
          },
          "imageWidth": 200
        }
      ]
    ],
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And here you can add your splash-icons you want .&lt;/p&gt;

&lt;h2&gt;
  
  
  Note:
&lt;/h2&gt;

&lt;p&gt;If you try to see splash screen in your &lt;strong&gt;Expo Go&lt;/strong&gt; app so it will not appear but the change in your **icon **should appear &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;app.json&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"version": "1.0.0",
    "orientation": "portrait",


&amp;gt; "icon": "./assets/images/splash-icons/splash-icon-with-bg.png",
    "scheme": "guftaar",
    "userInterfaceStyle": "automatic",
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;If you want to see splash screen so you have to make Apk file for android and iPA for Apple&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Moreover you can also add variations in your splash screen like animation and can control the time of it appearance &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;_layou-jsx&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SplashScreen.setOptions({
    duration: 1000,
    fade: true,
  });

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And at the end your result will look like this in your stimulator and Expo app&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftbv22azz35a3jecst1n3.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftbv22azz35a3jecst1n3.jpeg" alt=" " width="262" height="192"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to use font family in react native expo with Nativewind</title>
      <dc:creator>Abdullah Nasir</dc:creator>
      <pubDate>Mon, 20 Oct 2025 14:06:44 +0000</pubDate>
      <link>https://dev.to/abdullah_nasir_98b2b478ee/how-to-use-font-family-in-react-native-expo-with-nativewind-2njk</link>
      <guid>https://dev.to/abdullah_nasir_98b2b478ee/how-to-use-font-family-in-react-native-expo-with-nativewind-2njk</guid>
      <description>&lt;p&gt;This posts showcase how to setup any font family in your react-native (Expo) projects and then subsequently use it with nativewind &lt;/p&gt;

&lt;p&gt;1: First you have to add the npm package of that particular font family                          using your terminal&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm i @expo-google-fonts/poppins
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After it, Run the expo command in your terminal.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; npx expo install expo-font

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Here after the installation of packages you will need to update tailwind.config.js with font sizes you want you can from light to bold as per need of your project.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;theme: {
    extend: {
      fontFamily: {
        "poppins-light": ["Poppins-Light"],
        "poppins-regular": ["Poppins-Regular"],
        "poppins-medium": ["Poppins-Medium"],
        "poppins-semibold": ["Poppins-SemiBold"],
        "poppins-bold": ["Poppins-Bold"],
      },
    },
  },
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;after it the final steps involve to load all the names of fonts you used in your tailwind.config  in your main file &lt;strong&gt;_layout.tsx&lt;/strong&gt; (if you're not using expo router then add these in your App.ts)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import {
  Poppins_300Light,
  Poppins_400Regular,
  Poppins_500Medium,
  Poppins_600SemiBold,
  Poppins_700Bold,
  useFonts,
} from "@expo-google-fonts/poppins";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;then import in your main file &lt;strong&gt;_layout.tsx&lt;/strong&gt;****;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default function RootLayout() {
  const [fontsLoaded] = useFonts({
    "Poppins-Light": Poppins_300Light,
    "Poppins-Regular": Poppins_400Regular,
    "Poppins-Medium": Poppins_500Medium,
    "Poppins-SemiBold": Poppins_600SemiBold,
    "Poppins-Bold": Poppins_700Bold,
  });

  useEffect(() =&amp;gt; {
    if (fontsLoaded) {
      SplashScreen.hideAsync();
    }
  }, [fontsLoaded]);

  if (!fontsLoaded) {
    return null;
  }

  return &amp;lt;RootLayoutNav /&amp;gt;;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;that will be look this and now you are ready to used in your project&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;The Result :&lt;br&gt;
&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;Text className="text-primary  font-poppins-light"&amp;gt; Poppins Light is used here.  &amp;lt;/Text&amp;gt;
&amp;lt;Text className="text-primary font-poppins-regular"&amp;gt; Poppins Regular is used here. &amp;lt;/Text&amp;gt;
&amp;lt;Text className="text-primary font-poppins-bold"&amp;gt; Poppins Bold is used here. &amp;lt;/Text&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>reactnative</category>
      <category>expo</category>
      <category>nativewind</category>
      <category>tailwindcss</category>
    </item>
  </channel>
</rss>
