{"action":"created","issue":{"url":"https://api.github.com/repos/kusti8/proton-native/issues/83","repository_url":"https://api.github.com/repos/kusti8/proton-native","labels_url":"https://api.github.com/repos/kusti8/proton-native/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/kusti8/proton-native/issues/83/comments","events_url":"https://api.github.com/repos/kusti8/proton-native/issues/83/events","html_url":"https://github.com/kusti8/proton-native/issues/83","id":316512244,"number":83,"title":"Sharing code between proton-native and react-native","user":{"login":"dchersey","id":800393,"avatar_url":"https://avatars2.githubusercontent.com/u/800393?v=4","gravatar_id":"","url":"https://api.github.com/users/dchersey","html_url":"https://github.com/dchersey","followers_url":"https://api.github.com/users/dchersey/followers","following_url":"https://api.github.com/users/dchersey/following{/other_user}","gists_url":"https://api.github.com/users/dchersey/gists{/gist_id}","starred_url":"https://api.github.com/users/dchersey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dchersey/subscriptions","organizations_url":"https://api.github.com/users/dchersey/orgs","repos_url":"https://api.github.com/users/dchersey/repos","events_url":"https://api.github.com/users/dchersey/events{/privacy}","received_events_url":"https://api.github.com/users/dchersey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-21T18:05:12Z","updated_at":"2018-04-22T19:29:05Z","closed_at":"2018-04-22T19:29:05Z","author_association":"NONE","body":"Hi, thank you for your efforts in creating this framework! \r\n\r\nI have an existing RN app that is under development and would love to add a desktop (Mac, windows, linux) target to it ... I understand I'd have to build new views but my redux actions, reducers, api, etc could all be re-used by them.  \r\n\r\nAny tips on how to structure the code so that I can keep it to one code base?"},"comment":{"url":"https://api.github.com/repos/kusti8/proton-native/issues/comments/383406165","html_url":"https://github.com/kusti8/proton-native/issues/83#issuecomment-383406165","issue_url":"https://api.github.com/repos/kusti8/proton-native/issues/83","id":383406165,"user":{"login":"kusti8","id":9812956,"avatar_url":"https://avatars0.githubusercontent.com/u/9812956?v=4","gravatar_id":"","url":"https://api.github.com/users/kusti8","html_url":"https://github.com/kusti8","followers_url":"https://api.github.com/users/kusti8/followers","following_url":"https://api.github.com/users/kusti8/following{/other_user}","gists_url":"https://api.github.com/users/kusti8/gists{/gist_id}","starred_url":"https://api.github.com/users/kusti8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kusti8/subscriptions","organizations_url":"https://api.github.com/users/kusti8/orgs","repos_url":"https://api.github.com/users/kusti8/repos","events_url":"https://api.github.com/users/kusti8/events{/privacy}","received_events_url":"https://api.github.com/users/kusti8/received_events","type":"User","site_admin":false},"created_at":"2018-04-22T19:29:05Z","updated_at":"2018-04-22T19:29:05Z","author_association":"OWNER","body":"When I used react Native, I mostly used ignite cause it came with a really good structure. I can't remember exactly what it was, but basically you have a folder for state changes, folder for API, folder for stateless pure components and then a folder for state full components. IMHO that would be how I would do it. If you're doing anything that requires differing libraries, make that a separate file. \r\n\r\nBasically, separate the different parts of it and make it modular (same API) so that to convert, you just have to change the react Native components and props to proton native components and props. "}}
{"actor":{"display_login":"kusti8"}}