<?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 Dinç Özdemir on Medium]]></title>
        <description><![CDATA[Stories by Dinç Özdemir on Medium]]></description>
        <link>https://medium.com/@dincozdemir?source=rss-fcc7fbd0e271------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FpKu-wqcwh3MMlMy.</url>
            <title>Stories by Dinç Özdemir on Medium</title>
            <link>https://medium.com/@dincozdemir?source=rss-fcc7fbd0e271------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:38:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@dincozdemir/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[Integrate expo with a create-react-app project]]></title>
            <link>https://medium.com/@dincozdemir/integrate-expo-with-a-create-react-app-project-bdce31ce18d8?source=rss-fcc7fbd0e271------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdce31ce18d8</guid>
            <category><![CDATA[expo]]></category>
            <category><![CDATA[react-native]]></category>
            <category><![CDATA[create-react-app]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Dinç Özdemir]]></dc:creator>
            <pubDate>Sat, 30 Mar 2019 20:26:10 GMT</pubDate>
            <atom:updated>2019-03-30T20:28:05.486Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I will demonstrate a quick and simple way to integrate expo with a create-react-app web project. You can find the full project <a href="https://github.com/dincozdemir/expo-web-app">here</a>.</p><p>In the time of writing this article, expo had already begun integrating react-native-web for the upcoming version of expo (sdk 33), though I couldn’t get a project working with the <a href="https://blog.expo.io/expo-cli-and-sdk-web-support-beta-d0c588221375">beta instructions</a>. I strongly suggest you to follow the blog post for the upcoming fixes for the expo implementation.</p><p>To get started with, lets create a new web project withcreate-react-app. I will be using yarn throughout these instructions:</p><pre>yarn create react-app expo-web-app</pre><p>Lets install expo:</p><pre>yarn global add expo-cli</pre><p><em>(The following files will contain content that would be generated for an </em>expo init<em> bootstrapped project.You can create an expo project and copy these files from there)</em></p><p>Lets navigate into our project and create an app.json file:</p><pre>{<br>  &quot;expo&quot;: {<br>    &quot;name&quot;: &quot;Expo Web App&quot;,<br>    &quot;slug&quot;: &quot;expo-web-app&quot;,<br>    &quot;privacy&quot;: &quot;public&quot;,<br>    &quot;sdkVersion&quot;: &quot;32.0.0&quot;,<br>    &quot;platforms&quot;: [<br>      &quot;ios&quot;,<br>      &quot;android&quot;<br>    ],<br>    &quot;version&quot;: &quot;1.0.0&quot;,<br>    &quot;orientation&quot;: &quot;portrait&quot;,<br>    &quot;icon&quot;: &quot;./src/assets/icon.png&quot;,<br>    &quot;splash&quot;: {<br>      &quot;image&quot;: &quot;./src/assets/splash.png&quot;,<br>      &quot;resizeMode&quot;: &quot;contain&quot;,<br>      &quot;backgroundColor&quot;: &quot;#ffffff&quot;<br>    },<br>    &quot;updates&quot;: {<br>      &quot;fallbackToCacheTimeout&quot;: 0<br>    },<br>    &quot;assetBundlePatterns&quot;: [<br>      &quot;**/*&quot;<br>    ],<br>    &quot;ios&quot;: {<br>      &quot;supportsTablet&quot;: true<br>    }<br>  }<br>}</pre><p>Lets add expo and react-native to package.json. Because current version of expo sdk (32) requiresreact v16.5.0, we will also lowerreact and react-dom to this version. Next, we will add a main for expo app entry and add start and build scripts for expo:</p><pre>{<br>  &quot;name&quot;: &quot;expo-web-app&quot;,<br>  &quot;main&quot;: &quot;src/index.native.js&quot;,<br>  &quot;version&quot;: &quot;0.1.0&quot;,<br>  &quot;private&quot;: true,<br>  &quot;dependencies&quot;: {<br>    &quot;expo&quot;: &quot;^32.0.0&quot;,<br>    &quot;react&quot;: &quot;16.5.0&quot;,<br>    &quot;react-dom&quot;: &quot;^16.5.0&quot;,<br>    &quot;react-native&quot;: &quot;https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz&quot;,<br>    &quot;react-native-web&quot;: &quot;^0.11.2&quot;,<br>    &quot;react-scripts&quot;: &quot;2.1.8&quot;<br>  },<br>  &quot;scripts&quot;: {<br>    &quot;start-web&quot;: &quot;react-scripts start&quot;,<br>    &quot;start-native&quot;: &quot;expo start&quot;<br>  },<br>  &quot;eslintConfig&quot;: {<br>    &quot;extends&quot;: &quot;react-app&quot;<br>  },<br>  &quot;browserslist&quot;: [<br>    &quot;&gt;0.2%&quot;,<br>    &quot;not dead&quot;,<br>    &quot;not ie &lt;= 11&quot;,<br>    &quot;not op_mini all&quot;<br>  ]<br>}</pre><p>I couldn’t get react-native-web to work with expo out-of-the-box, so I used div and span polyfills for the web app (If you managed to get them work together somehow, please share in the comments). For this we will create a components directory that will contain View and Text components in this structure:</p><pre>src<br>\_ components<br>   \_ Text<br>      \_ index.native.js<br>         index.web.js<br>      View<br>      \_ index.native.js<br>         index.web.js<br>   index.js</pre><p>React-native’s metro bundler will be aware of *.android.js, *.ios.js and *.native.js extensions. create-react-app webpack configuration is set up to be aware of the*.web.js extension. This way we can define our web and native components seamlessly.</p><pre>// View</pre><pre>// index.native.js<br>import { View } <em>from</em> &#39;react-native&#39;;<br>export default View;</pre><pre>// index.web.js<br>import React <em>from</em> &#39;react&#39;;<br>export default (props) =&gt; &lt;div {...props} /&gt;</pre><pre>// Text</pre><pre>// index.native.js<br>import { Text } <em>from</em> &#39;react-native&#39;;<br>export default Text;</pre><pre>// index.web.js<br>import React <em>from</em> &#39;react&#39;;<br>export default (props) =&gt; &lt;span {...props} /&gt;</pre><p>Now we can change our View and Text imports in our App.js (Lets also ignore the StyleSheet component for now)</p><pre>import React <em>from</em> &#39;react&#39;;<br>import { View, Text } <em>from</em> &#39;./components&#39;;</pre><pre>export default class App <em>extends</em> React.Component {<br>  render() {<br>    return (<br>      &lt;View <em>style</em>={styles.container}&gt;<br>        &lt;Text&gt;Open up App.js to start working on your app!&lt;/Text&gt;<br>      &lt;/View&gt;<br>    );<br>  }<br>}</pre><pre>const styles = {<br>  container: {<br>    display: &#39;flex&#39;,<br>    flex: 1,<br>    backgroundColor: &#39;#fff&#39;,<br>    alignItems: &#39;center&#39;,<br>    justifyContent: &#39;center&#39;,<br>  },<br>};</pre><p>We need app entry files for both the native and web apps. We already have an index.js file created by create-react-app. Lets create another file src/index.native.js :</p><pre>import { KeepAwake, registerRootComponent } <em>from</em> &#39;expo&#39;;<br>import App <em>from</em> &#39;./App&#39;;</pre><pre>if (__DEV__) {<br>  KeepAwake.activate();<br>}</pre><pre>registerRootComponent(App);</pre><p>Now you can start your app by running yarn start-native and yarn start-web commands. Both will be running with their hot reloading capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nFLG_PY9ewNDpU0yH5J4qQ.png" /><figcaption>Web app</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*IrdlX2tZeFmvhLWeK-Lozw.jpeg" /><figcaption>Android app</figcaption></figure><p>Take note that i didn’t mention some of the files necessary to run the project such as assets and css files, but you can find them with the whole project in the github repo i mentioned at the beginning of the article.</p><p>I hope this article will be helpful to anyone who is in search of a simple setup for such use case. Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdce31ce18d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[React için bir admin arayüzü: react-admin]]></title>
            <link>https://medium.com/devinim/react-i%C3%A7in-bir-admin-aray%C3%BCz%C3%BC-react-admin-dcd0bcec5153?source=rss-fcc7fbd0e271------2</link>
            <guid isPermaLink="false">https://medium.com/p/dcd0bcec5153</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[material-ui]]></category>
            <category><![CDATA[material-design]]></category>
            <dc:creator><![CDATA[Dinç Özdemir]]></dc:creator>
            <pubDate>Thu, 26 Apr 2018 19:52:31 GMT</pubDate>
            <atom:updated>2018-04-26T22:41:36.678Z</atom:updated>
            <content:encoded><![CDATA[<p>Eski şirketimde bir projede kullandığım, React ile yazılmış, bir yandan konfigüratif, bir yandan da oldukça customizable bir kütüphane olan <strong>react-admin </strong>‘i biraz tanıtmak istiyorum.</p><p><a href="https://github.com/marmelab/react-admin">https://github.com/marmelab/react-admin</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aWwMKri1oAE4SFAR6WgDtg.gif" /><figcaption>React ile Material UI 2.0</figcaption></figure><p>Kütüphane tamamen bir önyüz kütüphanesi. Yani veritabanı katmanına kadar scaffolding yapan CMS kütüphaneleri (keystone.js, strapi.io, Semantic UI vb.) gibi değil. Bunun yanında minimum konfigürasyonla inanılmaz işler çıkarıyor. Yalnızca API url ’inizi, açmak istediğiniz endpointleri, ve entity lerin gösterilebilmesi için basit field tanımlamaları yaptıktan sonra bütün CRUD ekranlarını sizin için oluşturuyor.</p><p>Kütüphanenin bize sunduğu <strong>Admin</strong> Komponentine API url ’ini verip, <strong>Resource</strong> Komponentleri ile endpoint ’leri tanımlıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*0Alx4n9m7qqxtc4MxBhDTg.png" /></figure><p>Bu örnekte resource olarak <strong>post</strong> entity’ sini kullanıyoruz. Burada <a href="https://devin.im/"><strong>https://devin.im/</strong></a><strong>api</strong> API’ ımızdan beklentimiz, bu resource a ait RESTful endpointleri bize halihazırda sağlıyor olması.</p><p>Burada dikkat çekmek istediğim bir diğer nokta, endpoint yapımızı istediğimiz gibi değiştirmemize olanak sağlayan modüler yapısı. Varsayılan olarak kullandığı <strong>simpleRestClient</strong> client’ ını, API implementasyonumuza göre istediğimiz rest client’ la değiştirebiliyoruz. Bize hali hazırda sunulmuş alternatif standart clientlar bile mevcut:</p><ul><li><a href="https://github.com/abiglobalhealth/aor-dynamodb-client"><strong>DynamoDb</strong></a>: <a href="https://github.com/abiglobalhealth/aor-dynamodb-client">abiglobalhealth/aor-dynamodb-client</a></li><li><a href="https://github.com/dchester/epilogue"><strong>Epilogue</strong></a>: <a href="https://github.com/dunghuynh/aor-epilogue-client">dunghuynh/aor-epilogue-client</a></li><li><a href="http://www.feathersjs.com/"><strong>Feathersjs</strong></a>: <a href="https://github.com/josx/aor-feathers-client">josx/aor-feathers-client</a></li><li><a href="https://firebase.google.com/"><strong>Firebase</strong></a>: <a href="https://github.com/sidferreira/aor-firebase-client">sidferreira/aor-firebase-client</a></li><li><a href="http://jsonapi.org/"><strong>JSON API</strong></a>: <a href="https://github.com/moonlight-labs/aor-jsonapi-client">moonlight-labs/aor-jsonapi-client</a></li><li><a href="http://loopback.io/"><strong>Loopback</strong></a>: <a href="https://github.com/kimkha/aor-loopback">kimkha/aor-loopback</a></li><li><a href="https://github.com/ParsePlatform/parse-server"><strong>Parse Server</strong></a>: <a href="https://github.com/leperone/aor-parseserver-client">leperone/aor-parseserver-client</a></li><li><a href="http://postgrest.com/en/v0.4/"><strong>PostgREST</strong></a>: <a href="https://github.com/tomberek/aor-postgrest-client">tomberek/aor-postgrest-client</a></li><li><a href="https://github.com/o1lab/xmysql"><strong>Xmysql</strong></a>: <a href="https://github.com/soaserele/aor-xmysql">soaserele/aor-xmysql</a></li></ul><p><strong>Admin</strong> tanımımızdan sonra entity’ ye ait <strong>List</strong>, <strong>Edit</strong> ve <strong>Create</strong> ekranlarını, bize sunulan Material UI altyapılı komponentlerle basitçe tanımlıyoruz.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*Add84lJ0gx7dSHXjgA5nGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/878/1*y0pFgb-QTo5iRcrApAjOUA.png" /></figure><p>Hepsi bu kadar. <strong>post</strong> resource ’umuza ait bütün ekranlar tam fonksiyonel bir şekilde hazır.</p><p>Kütüphanenin bir avantajı, bu componentleri oldukça derin bir şekilde customize edebiliyor olmamız. Material UI’ ın üzerine kendi Komponentlerimizi yazıp ekleyebiliyoruz.</p><p>Kısaca tanıtmak istediğim bu güzel kütüphanenin oldukça detaylı bir demosunu şu adreste bulabilirsiniz:</p><p><a href="https://marmelab.com/react-admin-demo/#/">https://marmelab.com/react-admin-demo/#/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dcd0bcec5153" width="1" height="1" alt=""><hr><p><a href="https://medium.com/devinim/react-i%C3%A7in-bir-admin-aray%C3%BCz%C3%BC-react-admin-dcd0bcec5153">React için bir admin arayüzü: react-admin</a> was originally published in <a href="https://medium.com/devinim">devinim</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>