<?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: Talha Javed</title>
    <description>The latest articles on DEV Community by Talha Javed (@talhajawed).</description>
    <link>https://dev.to/talhajawed</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%2F191454%2F908b53a5-8182-4654-b279-cdaf4f8722fe.jpeg</url>
      <title>DEV Community: Talha Javed</title>
      <link>https://dev.to/talhajawed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/talhajawed"/>
    <language>en</language>
    <item>
      <title>Add Custom Fonts in React Native 0.63 &gt;= for android and iOS</title>
      <dc:creator>Talha Javed</dc:creator>
      <pubDate>Tue, 13 Apr 2021 11:41:17 +0000</pubDate>
      <link>https://dev.to/talhajawed/add-custom-fonts-in-react-native-0-63-for-android-and-ios-33hp</link>
      <guid>https://dev.to/talhajawed/add-custom-fonts-in-react-native-0-63-for-android-and-ios-33hp</guid>
      <description>&lt;p&gt;Adding Custom Fonts to React Native App is quite easy and only needs a few steps. I am writing down the steps I did to add custom fonts to my app.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Download Google Font&lt;/strong&gt;&lt;br&gt;
First, you need to download your desired fonts from &lt;a href="https://fonts.google.com/" rel="noopener noreferrer"&gt;Google Fonts&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Add fonts to app folder&lt;/strong&gt;&lt;br&gt;
Then create a fonts folder in your root App/assets folder and paste downloaded fonts files in it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2F895dra001ni051xdcs4q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F895dra001ni051xdcs4q.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Export fonts&lt;/strong&gt;&lt;br&gt;
Now create a file named &lt;code&gt;react-native.config.js&lt;/code&gt; at the root of your app and add the path of fonts folder like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;module.exports = {
  project: {
    ios: {},
    android: {},
  },
  assets: ['./App/assets/fonts'],
};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Link assets to project&lt;/strong&gt;&lt;br&gt;
After adding this, Now run “react-native link”. This will copy the font to the app. For android it will be copied to “android &amp;gt; app &amp;gt; src &amp;gt; main &amp;gt; assets &amp;gt; fonts” folder. For iOS the font name will be added to info.plist file in ios &amp;gt; your_app_name &amp;gt; Info.plist&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npx react-native link
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Add resources to target&lt;/strong&gt;&lt;br&gt;
Now at this point, your custom fonts will start working for the android app but you need to do one last step to make it work for iOS.&lt;/p&gt;

&lt;p&gt;Go to the desired target of your app in Xcode, select the &lt;code&gt;Build Phases&lt;/code&gt; tab, and add font files in the "Copy Bundle Resources" tab as shown below.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.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%2F5o8wm8q8i85ne3rp1jit.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.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%2F5o8wm8q8i85ne3rp1jit.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Xcode step is done for us at the linking step. Just have to remember to rebuild the app after.&lt;/p&gt;

&lt;p&gt;Hope you were able to add custom fonts to your app.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>mobile</category>
    </item>
    <item>
      <title>How I Use VSCode</title>
      <dc:creator>Talha Javed</dc:creator>
      <pubDate>Fri, 13 Dec 2019 17:49:19 +0000</pubDate>
      <link>https://dev.to/talhajawed/how-i-use-vscode-2787</link>
      <guid>https://dev.to/talhajawed/how-i-use-vscode-2787</guid>
      <description>&lt;p&gt;I recently updated and shared my &lt;a href="https://howivscode.com/Talha-Jawed"&gt;Visual Studio Code settings&lt;/a&gt; on &lt;a href="https://howivscode.com"&gt;How I VSCode&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Check them out and share yours as well!&lt;/p&gt;

</description>
      <category>vscode</category>
    </item>
    <item>
      <title>Answer: How to set iOS status bar background color in React Native?</title>
      <dc:creator>Talha Javed</dc:creator>
      <pubDate>Sat, 07 Dec 2019 13:48:24 +0000</pubDate>
      <link>https://dev.to/talhajawed/answer-how-to-set-ios-status-bar-background-color-in-react-native-1dcm</link>
      <guid>https://dev.to/talhajawed/answer-how-to-set-ios-status-bar-background-color-in-react-native-1dcm</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pTF_nE4a--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/39297291/how-to-set-ios-status-bar-background-color-in-react-native/59223500#59223500" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  How to set iOS status bar background color in React Native?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Dec  7 '19&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/39297291/how-to-set-ios-status-bar-background-color-in-react-native/59223500#59223500" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--5MiFESHx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          2
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Rk_a5QFN--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://practicaldev-herokuapp-com.freetls.fastly.net/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;&lt;strong&gt;set iOS &amp;amp; Android statusbar backgroundColor in react-native&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    import React, { Component } from 'react';
    import { Platform, StyleSheet, View, StatusBar } from 'react-native';
    import Constants from 'expo-constants';


    class Statusbar extends Component {

        render() {
            return (
                &amp;lt;View style={styles.StatusBar}&amp;gt;
                    &amp;lt;StatusBar translucent barStyle="light-content" /&amp;gt;
                &amp;lt;/View&amp;gt;
            );
        }
    }

    const styles =&lt;/code&gt;&lt;/pre&gt;…
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/39297291/how-to-set-ios-status-bar-background-color-in-react-native/59223500#59223500" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>reactnative</category>
      <category>ios</category>
      <category>android</category>
    </item>
    <item>
      <title>successfully completed 🎉🎉</title>
      <dc:creator>Talha Javed</dc:creator>
      <pubDate>Sun, 13 Oct 2019 11:24:59 +0000</pubDate>
      <link>https://dev.to/talhajawed/successfully-completed-1ad5</link>
      <guid>https://dev.to/talhajawed/successfully-completed-1ad5</guid>
      <description>&lt;p&gt;Confirmation: &lt;a href="http://university.mongodb.com/course_completion/9d58d436-974e-47ef-bf01-d3ce51df6634"&gt;http://university.mongodb.com/course_completion/9d58d436-974e-47ef-bf01-d3ce51df6634&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--4HQRoVM0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/2pd4fevz1le4h23532t4.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--4HQRoVM0--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/2pd4fevz1le4h23532t4.jpg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mongodb</category>
    </item>
    <item>
      <title>check out my fiverr profile now i am level one 🎉</title>
      <dc:creator>Talha Javed</dc:creator>
      <pubDate>Fri, 27 Sep 2019 17:21:17 +0000</pubDate>
      <link>https://dev.to/talhajawed/check-out-my-fiverr-profile-now-i-am-level-one-2fjc</link>
      <guid>https://dev.to/talhajawed/check-out-my-fiverr-profile-now-i-am-level-one-2fjc</guid>
      <description>&lt;p&gt;&lt;a href="https://www.fiverr.com/talha_javed97"&gt;https://www.fiverr.com/talha_javed97&lt;/a&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>react</category>
      <category>node</category>
      <category>javascript</category>
    </item>
    <item>
      <title>React Native Swipe Image</title>
      <dc:creator>Talha Javed</dc:creator>
      <pubDate>Sun, 07 Jul 2019 07:41:46 +0000</pubDate>
      <link>https://dev.to/talhajawed/react-native-swipe-image-10pa</link>
      <guid>https://dev.to/talhajawed/react-native-swipe-image-10pa</guid>
      <description>&lt;p&gt;A React Native library to swipe image on top, bottom, left, right like your favorite platforms!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/react-native-swipe-image"&gt;https://www.npmjs.com/package/react-native-swipe-image&lt;/a&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
    </item>
  </channel>
</rss>
