<?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 Alican Çelik on Medium]]></title>
        <description><![CDATA[Stories by Alican Çelik on Medium]]></description>
        <link>https://medium.com/@alican-ccelik?source=rss-301058193e72------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*mNdngxD2S0HISgYJ.jpg</url>
            <title>Stories by Alican Çelik on Medium</title>
            <link>https://medium.com/@alican-ccelik?source=rss-301058193e72------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 02:30:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alican-ccelik/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[React Native’de Absolute Path kullanma]]></title>
            <link>https://alican-ccelik.medium.com/react-nativede-absolute-path-kullanma-55bfc845f00c?source=rss-301058193e72------2</link>
            <guid isPermaLink="false">https://medium.com/p/55bfc845f00c</guid>
            <dc:creator><![CDATA[Alican Çelik]]></dc:creator>
            <pubDate>Wed, 09 Jun 2021 13:24:00 GMT</pubDate>
            <atom:updated>2021-06-09T13:27:45.616Z</atom:updated>
            <content:encoded><![CDATA[<p>Projelerde relative path gormekten ve yazmaktan yoruldugum icin kendi projeme ekledikten sonra bu bilgiyi buraya yazmak istedim. Oncelikle Relative Path ve Absolute Path orneklerini gorsellerle paylasayim.</p><p><strong>Relative Path;</strong></p><p>Adından anlasilacagi gibi farkli directorylerde farkli hedefler isaret ederler yani file’a gore path’i tanimlanir bunlarin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wlwsAy3e8tYLkKFkNd-O6Q.png" /></figure><p>Gordugunuz gibi relative path’in kullanim acisindan ugrastirdigi asikar. Buyuk bir uygulamada proje yapisi derinlestikce bunlarin kullanimi daha da can sıkacaktır o yuzden Absolute Path kullanmak bu durumdan kacmak icin guzel bir yol.</p><p><strong>Absolute Path;</strong></p><p>Relative path’in tanim olarak tersi diyebilirz. Hedef yani path degismiyor bir referans noktasina bagli degil.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I7osJ9MGb6Rm0l-_AFfHeA.png" /></figure><p>Simdi bunu uygulamanin yolunu anlatayim. Ben uyguladigim projede typescript olmadigi icin js ustunden gosterecegim fakat typescript icin degisen birseyin olacagini sanmiyorum. Projede ana dizinde iki tane file’a ihtiyacimiz var. jsconfig.json ve babel.config.js bunlari kullanmaliyiz. Aslinda isi babel.config.js’de yapiyor olmamiza ragmen jsconfig’te vscode gibi idelerin o directory’i tanimasi icin compilerOptions tanimliyoruz.</p><pre>{</pre><pre>    &quot;compilerOptions&quot;: {</pre><pre>        &quot;baseUrl&quot;: &quot;.&quot;,</pre><pre>        &quot;paths&quot;: {</pre><pre>           &quot;@comp&quot;: [&quot;./src/components&quot;],</pre><pre>           &quot;@helpers/*&quot;: [&quot;./src/helpers/*&quot;],</pre><pre>           &quot;@services/*&quot;: [&quot;./src/services/*&quot;],</pre><pre>         }</pre><pre>    },</pre><pre>    &quot;exclude&quot;: [</pre><pre>        &quot;node_modules&quot;,</pre><pre>        &quot;dist&quot;</pre><pre>     ] </pre><pre>}</pre><pre>&quot;node_modules&quot;,</pre><pre>&quot;dist&quot;</pre><pre>]</pre><pre>}</pre><p>Simdide babel.config.js’e alias’larimizi tanimlayalim</p><pre>module.exports = {</pre><pre>     presets: [&#39;module:metro-react-native-babel-preset&#39;],</pre><pre>     plugins: [</pre><pre>     [</pre><pre>       &#39;module-resolver&#39;,</pre><pre>       {</pre><pre>         root: [&quot;./src&quot;],</pre><pre>         extensions: [</pre><pre>           &quot;.ios.ts&quot;,</pre><pre>           &quot;.android.ts&quot;,</pre><pre>           &quot;.ts&quot;,</pre><pre>           &quot;.ios.tsx&quot;,</pre><pre>           &quot;.android.tsx&quot;,</pre><pre>           &quot;.tsx&quot;,</pre><pre>           &quot;.jsx&quot;,</pre><pre>           &quot;.js&quot;,</pre><pre>           &quot;.json&quot;</pre><pre>       ],</pre><pre>        alias: {</pre><pre>           &quot;@comp&quot;: &quot;./src/components&quot;,</pre><pre>           &quot;@helpers/*&quot;: &quot;./src/helpers/*&quot;,</pre><pre>           &quot;@services/*&quot;: &quot;./src/services/*&quot;,</pre><pre>        }</pre><pre>     },</pre><pre>    ],</pre><pre>  ],</pre><pre>};</pre><p>Artik projenizde Absolute Path kullanabilirsiniz. Eger metro-react-native-babel-preset paketi yoksa yuklemeyi unutmayin</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55bfc845f00c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>