<?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: Kevin Ilondo</title>
    <description>The latest articles on DEV Community by Kevin Ilondo (@kevilondo).</description>
    <link>https://dev.to/kevilondo</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%2F537898%2F8a001450-7efc-4a0f-8a6d-d93203fa3713.jpeg</url>
      <title>DEV Community: Kevin Ilondo</title>
      <link>https://dev.to/kevilondo</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kevilondo"/>
    <language>en</language>
    <item>
      <title>Display images dynamically (from a variable) in React Native</title>
      <dc:creator>Kevin Ilondo</dc:creator>
      <pubDate>Thu, 30 Sep 2021 20:25:18 +0000</pubDate>
      <link>https://dev.to/kevilondo/display-images-dynamically-from-a-variable-in-react-native-524g</link>
      <guid>https://dev.to/kevilondo/display-images-dynamically-from-a-variable-in-react-native-524g</guid>
      <description>&lt;p&gt;You are probably working on a mobile and you want to design images that you got from an API or maybe the path to that image is stored using React Context API, but there is one problem: whenever you do this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const my_variable = '../assets/image.jpg';
&amp;lt;Image
source={require(my_variable)}
/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You get an error.&lt;br&gt;
The solution to this problem is to require the file in the variable 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;const my_variable = require('../assets/image.jpg');
&amp;lt;Image
source={my_variable}
/&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Doing this will definitely solve your problem and If you have any question regarding React Native or this specific post, feel free to ask, who knows, maybe other developers are going through the same problem and discussing certain issues here might help a lot of people.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.amazon.com/Mechanical-Keyboard-Bluetooth-Swappable-Programmable-PC/dp/B0CCP8KYGG?ref_=Oct_d_omwf_d_172456_1&amp;amp;amp%3Bpd_rd_w=x9JgM&amp;amp;amp%3Bcontent-id=amzn1.sym.16d13a9d-8297-4600-8ace-5f4fa6eab345&amp;amp;amp%3Bpf_rd_p=16d13a9d-8297-4600-8ace-5f4fa6eab345&amp;amp;amp%3Bpf_rd_r=JZ2W7RFGS88NTHHK7WWS&amp;amp;amp%3Bpd_rd_wg=NhV9s&amp;amp;amp%3Bpd_rd_r=54fb64a6-864c-4a5e-a4d6-254a4621e425&amp;amp;amp%3Bpd_rd_i=B0CCP8KYGG&amp;amp;amp%3Bth=1&amp;amp;_encoding=UTF8&amp;amp;tag=kevilondo-20&amp;amp;linkCode=ur2&amp;amp;linkId=7cf84bb781a100aa296e3df88b5afdf2&amp;amp;camp=1789&amp;amp;creative=9325"&gt;8Bit style Retro mechanical keyboard&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.amazon.com/Sony-WH-XB910N-Cancelling-Headphones-Microphone/dp/B09CGB6VRR/ref=sr_1_10?crid=3G13AHY9IS8Q&amp;amp;keywords=noise+canceling+headphones&amp;amp;qid=1698182532&amp;amp;sprefix=noise+c%252Caps%252C443&amp;amp;sr=8-10&amp;amp;_encoding=UTF8&amp;amp;tag=kevilondo-20&amp;amp;linkCode=ur2&amp;amp;linkId=0a9194e9011ee02181d3ccedc38999bf&amp;amp;camp=1789&amp;amp;creative=9325"&gt;Noise canceling headphones with Alexa built-in&lt;/a&gt;&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>android</category>
      <category>mobile</category>
      <category>javascript</category>
    </item>
    <item>
      <title>What my Android app taught me</title>
      <dc:creator>Kevin Ilondo</dc:creator>
      <pubDate>Thu, 30 Sep 2021 20:17:59 +0000</pubDate>
      <link>https://dev.to/kevilondo/what-my-android-app-taught-me-4pp3</link>
      <guid>https://dev.to/kevilondo/what-my-android-app-taught-me-4pp3</guid>
      <description>&lt;p&gt;I released an Android app early this year, and I'm going to write a small post about what this app really taught me.&lt;/p&gt;

&lt;p&gt;I am not bragging or claiming that I am the best, I just want to share my experience as a developer hoping that it will help those who are also working hard out there to release apps or build side projects.&lt;/p&gt;

&lt;h2&gt;
  
  
  Simple and useful features are always better than complex and unnecessary features
&lt;/h2&gt;

&lt;p&gt;As developers, we usually tend to overcomplicate things because we want to play around with the latest framework, or blow people's mind with amazing features that are probably not needed by the user.&lt;/p&gt;

&lt;h2&gt;
  
  
  No matter how stupid or 'simple' you think your app is, if you can, just release it
&lt;/h2&gt;

&lt;p&gt;Yes the title says everything, I honestly never believed that my app was gonna get downloaded at all, but I felt like it was a good idea to release it on Android because it was not going to cost me a lot of money but also I thought that even though it was an app that wasn't fancy in terms of features, it could still be used by a couple of people and I remembered that I learned how to code because I believed that I would be helping people by creating useful softwares, so as long my app could help at least one person out there, why not release it? I did and it was downloaded 3000 times and got over 60 reviews in less than a year.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;This post is just meant to motivate those who work on personal side projects for fun or for whatever reason they might have. If you believe that your app idea is something people can use to make their lives easier, release it, let the world play around with your work, we never know what you might learn in the process.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>javascript</category>
      <category>mobile</category>
      <category>android</category>
    </item>
    <item>
      <title>Real time group chat app built with PHP/Laravel, VueJs and Pusher</title>
      <dc:creator>Kevin Ilondo</dc:creator>
      <pubDate>Mon, 03 May 2021 19:04:44 +0000</pubDate>
      <link>https://dev.to/kevilondo/real-time-group-chat-app-built-with-php-laravel-vuejs-and-pusher-2o2m</link>
      <guid>https://dev.to/kevilondo/real-time-group-chat-app-built-with-php-laravel-vuejs-and-pusher-2o2m</guid>
      <description>&lt;p&gt;I built a group chat app using Laravel, I wanted to share it with the community to inspire those who are looking for side projects ideas.&lt;/p&gt;

&lt;p&gt;link to the code: &lt;a href="http://www.github.com/kevilondo/group-chat"&gt;www.github.com/kevilondo/group-chat&lt;/a&gt;&lt;br&gt;
link to the video: &lt;a href="https://www.linkedin.com/posts/kevin-ilondo-002a411bb_programming-webdev-webapp-activity-6793932838757576704-Vh0Z"&gt;https://www.linkedin.com/posts/kevin-ilondo-002a411bb_programming-webdev-webapp-activity-6793932838757576704-Vh0Z&lt;/a&gt;&lt;/p&gt;

</description>
      <category>php</category>
      <category>vue</category>
      <category>laravel</category>
      <category>pushercontest</category>
    </item>
    <item>
      <title>How I learned React JS and React Native by building fun project</title>
      <dc:creator>Kevin Ilondo</dc:creator>
      <pubDate>Wed, 03 Mar 2021 14:55:19 +0000</pubDate>
      <link>https://dev.to/kevilondo/how-i-learned-react-js-and-react-native-by-building-fun-project-1nfl</link>
      <guid>https://dev.to/kevilondo/how-i-learned-react-js-and-react-native-by-building-fun-project-1nfl</guid>
      <description>&lt;p&gt;I have always wanted to learn React, but I never had the motivation the learn it, well, let's say I easily got bored 😑, but I had this idea of apps that I wanted to build and I thought that was going to be the best way to learn more about React and React Native!&lt;/p&gt;

&lt;h3&gt;Referencer App&lt;/h3&gt; 

&lt;p&gt;This app helps you cite a book, online article or any other source you used for your paper, using the Harvard referencing style. This app thought me how to use React Navigation, string manipulation, states, React hooks, etc&lt;br&gt;
The name of the app is &lt;a href="https://play.google.com/store/apps/details?id=com.kevilondo.referencer"&gt; Referencer-Harvard Style &lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Super Hero Roster&lt;/h3&gt;

&lt;p&gt;This app gives you all the information you need about comic book characters. It uses an API called Superhero. Here is a link to the github repo, you are more than welcome to clone it and use it for learning purpose.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/kevilondo/super-hero-roster"&gt;https://github.com/kevilondo/super-hero-roster&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;Quiz App for Naruto and Anime fans&lt;/h3&gt;

&lt;p&gt;I created this app to practice what I already learned so far with my previous apps, the only difference is that I built the API myself with PHP and Laravel. If you want to check it out,&lt;br&gt;
The name of the app is &lt;a href="https://play.google.com/store/apps/details?id=com.kevilondo.shinobiquiz"&gt; Shinobi Quiz &lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have learned a lot by building these apps, and I think this way of doing things is really good for those who are getting started in React and React Native development.&lt;/p&gt;

&lt;p&gt;The moral of the story is, try to have fun while coding, build apps that might be useful to you, something you and/or your friends could use on a daily basis if possible. It will boost your confidence and help improve your coding skills.&lt;/p&gt;

</description>
      <category>reactnative</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Network Request Failed/Network Error in React Native using Laravel API and Android emulator</title>
      <dc:creator>Kevin Ilondo</dc:creator>
      <pubDate>Fri, 11 Dec 2020 14:54:39 +0000</pubDate>
      <link>https://dev.to/kevilondo/network-request-failed-network-error-in-react-native-using-laravel-api-and-android-emulator-ble</link>
      <guid>https://dev.to/kevilondo/network-request-failed-network-error-in-react-native-using-laravel-api-and-android-emulator-ble</guid>
      <description>&lt;p&gt;If you are currently working on an app with React Native and you are using Laravel as your backend, you have probably encountered this problem.&lt;br&gt;
And this article will help you solve this problem with just &lt;b&gt;ONE SIMPLE TRICK.&lt;/b&gt;&lt;/p&gt;

&lt;h1&gt;SOMETIMES THIS PROBLEM IS CAUSED BY HOW YOU START YOUR LARAVEL APP&lt;/h1&gt;

&lt;p&gt;We all know how to start a Laravel server with the simple php artisan serve command and that’s the problem.&lt;br&gt;
By starting your Laravel app like that it creates a link for your app which is &lt;i&gt;localhost:8000&lt;/i&gt; (the port may be different for you, it might be &lt;i&gt; 3000, 8080 &lt;/i&gt; or anything else but we will use &lt;i&gt;8000&lt;/i&gt; for this tutorial).&lt;br&gt;
When making an HTTP Request with React Native, there is some kind of conflict because your Android app is run on an emulator which uses localhost too, and instead of sending the request to the localhost on your computer, it sends the request to the phone itself but with a different port and that is why you are getting this error.&lt;/p&gt;

&lt;h1&gt;THE TRICK THAT HELPED ME&lt;/h1&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

D:\xampp\htdocs\projects\laravel\blog&amp;gt;php artisan serve --host 10.10.10.2 --port="8000"
Laravel development server started: http://10.10.10.2:8000
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Just start the server by giving an IP address and a port&lt;br&gt;
It’s just that simple! Start your app as usual but don’t forget to give an IP address and a port, this will help you solve the Network Request Failed error.&lt;/p&gt;

&lt;p&gt;NOTE: Replace &lt;i&gt; 10.10.10.2 &lt;/i&gt; with your own IP Address, this is just an example.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;//with axios
await axios.post('http://10.10.10.2:8000/api/user/login', data, headers)
    .then(res =&amp;gt; {
      console.log(res.data)
    })
//with Fetch
await fetch('http://10.10.10.2:8000/api/user/login', {
method: "POST",
headers: headers //put your headers,
body: body //put the body here
})

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

&lt;/div&gt;



&lt;p&gt;And on your mobile app, make sure to use the correct URL in your request.&lt;br&gt;
Make sure that CORS is enabled in your backend to avoid errors related to CORS. Next time I will make make a detailed post about how to enable it and how to solve issues related to CORS.&lt;/p&gt;

&lt;h1&gt;CONCLUSION&lt;/h1&gt;

&lt;p&gt;Start your Laravel app and enter your IP address and a port&lt;br&gt;
Use the URL in your HTTP Request.&lt;br&gt;
That’s it, I hope this post was useful to you and happy coding!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
