<?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: AHMED HAFDI</title>
    <description>The latest articles on DEV Community by AHMED HAFDI (@hafdiahmed).</description>
    <link>https://dev.to/hafdiahmed</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%2F721683%2Ff3e998ed-948e-4c6c-b9d4-159abea259cb.jpeg</url>
      <title>DEV Community: AHMED HAFDI</title>
      <link>https://dev.to/hafdiahmed</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hafdiahmed"/>
    <language>en</language>
    <item>
      <title>navigation.navigate("somescreen") show errors with typescript and react-native</title>
      <dc:creator>AHMED HAFDI</dc:creator>
      <pubDate>Fri, 26 Nov 2021 10:20:35 +0000</pubDate>
      <link>https://dev.to/hafdiahmed/navigationnavigatesomescreen-show-errors-with-typescript-and-react-native-2mp4</link>
      <guid>https://dev.to/hafdiahmed/navigationnavigatesomescreen-show-errors-with-typescript-and-react-native-2mp4</guid>
      <description>&lt;p&gt;Argument of type 'string' is not assignable to parameter of type '{ key: string; params?: never; merge?: boolean; } | { name: never; key?: string; params: never; merge?: boolean; }'.ts(2345)&lt;/p&gt;

&lt;p&gt;that happens always when we cant to navigate to anther screen with typescript in react-native an help ?&lt;br&gt;
example of code :&lt;br&gt;
navigation.navigate("page_2")} /&amp;gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  solution :
&lt;/h1&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
      <category>typescript</category>
      <category>ignite</category>
    </item>
    <item>
      <title>the developement server returned response error code : 500 #1
</title>
      <dc:creator>AHMED HAFDI</dc:creator>
      <pubDate>Tue, 19 Oct 2021 10:12:02 +0000</pubDate>
      <link>https://dev.to/hafdiahmed/the-developement-server-returned-response-error-code-500-1-1a6j</link>
      <guid>https://dev.to/hafdiahmed/the-developement-server-returned-response-error-code-500-1-1a6j</guid>
      <description>&lt;p&gt;solution :&lt;br&gt;
babel-preset-react-native make this trouble. Run below orders in your project root dir:&lt;/p&gt;

&lt;p&gt;$yarn remove babel-preset-react-native&lt;br&gt;
$yarn add &lt;a href="mailto:babel-preset-react-native@2.1.0"&gt;babel-preset-react-native@2.1.0&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>reactnative</category>
      <category>javascript</category>
      <category>ignite</category>
    </item>
    <item>
      <title>| import * as Localization from "expo-localization" |</title>
      <dc:creator>AHMED HAFDI</dc:creator>
      <pubDate>Fri, 15 Oct 2021 11:01:34 +0000</pubDate>
      <link>https://dev.to/hafdiahmed/-import-as-localization-from-expo-localization--133o</link>
      <guid>https://dev.to/hafdiahmed/-import-as-localization-from-expo-localization--133o</guid>
      <description>&lt;p&gt;solution : yarn add expo-localization&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>reactnative</category>
      <category>android</category>
    </item>
    <item>
      <title>You don't seem to have a generator with the name “react-native-ignite:model” installed.</title>
      <dc:creator>AHMED HAFDI</dc:creator>
      <pubDate>Mon, 11 Oct 2021 14:26:38 +0000</pubDate>
      <link>https://dev.to/hafdiahmed/you-don-t-seem-to-have-a-generator-with-the-name-react-native-ignite-model-installed-1amo</link>
      <guid>https://dev.to/hafdiahmed/you-don-t-seem-to-have-a-generator-with-the-name-react-native-ignite-model-installed-1amo</guid>
      <description>&lt;p&gt;You don't seem to have a generator with the name “react-native-ignite:model” installed.&lt;br&gt;
But help is on the way:&lt;/p&gt;

&lt;p&gt;You can see available generators via npm search yeoman-generator or via &lt;a href="http://yeoman.io/generators/"&gt;http://yeoman.io/generators/&lt;/a&gt;.&lt;br&gt;
Install them with npm install generator-react-native-ignite.&lt;/p&gt;

&lt;p&gt;To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.&lt;/p&gt;

&lt;p&gt;If yo cannot find the generator, run yo doctor to troubleshoot your system.&lt;/p&gt;

&lt;p&gt;solution : &lt;/p&gt;

&lt;p&gt;there are 2 solutions&lt;/p&gt;

&lt;p&gt;1)run this command npm install generator-react-native-ignite (or with yarn)&lt;br&gt;
2°if 1 didnt work then you have to follow these steps :&lt;br&gt;
download this folder ( ignite ) ( &lt;a href="https://drive.google.com/drive/folders/14thitkLxWl93OJ_z2EndeIcZhAaeBIJ0?usp=sharing"&gt;https://drive.google.com/drive/folders/14thitkLxWl93OJ_z2EndeIcZhAaeBIJ0?usp=sharing&lt;/a&gt;)&lt;br&gt;
3)you put the folder on this path "project_ignite/app/"&lt;br&gt;
then install ignite react native genetator : use this command &lt;strong&gt;npm install generator-react-native-ignite (or with yarn)&lt;/strong&gt;&lt;br&gt;
4)now you can generate anything you want ( screens , models ..etc ) ( for example generate a model named hello &lt;strong&gt;npx ignite-cli generate model hello&lt;/strong&gt;)&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>reactnative</category>
      <category>ignite</category>
    </item>
    <item>
      <title>⚠️ Generator "screen" isn't installed (ignite browser react native</title>
      <dc:creator>AHMED HAFDI</dc:creator>
      <pubDate>Mon, 11 Oct 2021 14:17:47 +0000</pubDate>
      <link>https://dev.to/hafdiahmed/generator-screen-isn-t-installed-ignite-browser-react-native-4fl6</link>
      <guid>https://dev.to/hafdiahmed/generator-screen-isn-t-installed-ignite-browser-react-native-4fl6</guid>
      <description>&lt;p&gt;⚠️ Generator "screen" isn't installed.&lt;/p&gt;

&lt;p&gt;Install the generator with:&lt;/p&gt;

&lt;p&gt;ignite generate screen --update&lt;/p&gt;

&lt;p&gt;... and then try again!&lt;/p&gt;

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