{"id":4464,"date":"2015-12-12T14:54:14","date_gmt":"2015-12-12T20:54:14","guid":{"rendered":"http:\/\/www.thechunk.com\/blog\/?p=4464"},"modified":"2015-12-12T14:54:14","modified_gmt":"2015-12-12T20:54:14","slug":"getting-started-with-react-native","status":"publish","type":"post","link":"https:\/\/thechunk.com\/blog\/archive\/getting-started-with-react-native\/","title":{"rendered":"Getting Started with React Native"},"content":{"rendered":"<p>We&#8217;re using React at work for a current project. I thought I might start checking out React Native as a side project to get me working more in React and to see what I can get going on iOS.<\/p>\n<p>The <a href=\"https:\/\/facebook.github.io\/react-native\/docs\/getting-started.html\">React Native Getting Started<\/a> page is pretty good, but upon trying to run the AwesomeProject sample, I got errors related to watchman in the console the first time and then a subsequent error similar to<\/p>\n<pre style=\"padding-left: 30px;\">Error building DependencyGraph:\r\nTypeError: Cannot read property 'root' of null\r\n<\/pre>\n<p>followed by a stack trace. The simulator then loaded with a red screen and another set of errors. I went to the <a href=\"http:\/\/facebook.github.io\/react-native\/docs\/troubleshooting.html\">React Native Troubleshooting page<\/a>, but didn&#8217;t find my error there. After googling a bit, I found that<\/p>\n<pre style=\"padding-left: 30px;\">brew update &amp;&amp; brew reinstall watchman<\/pre>\n<p>did the trick for me and got me running. I also got warnings about running with iOS 7.0 as the target. I don&#8217;t know if that was the default from the React starter or some other default, but I just set that to the latest (iOS 8.2).<\/p>\n<p>The issue navigator in Xcode is also giving the following error, but I haven&#8217;t sorted that one out yet. It didn&#8217;t keep the project from running.<\/p>\n<pre style=\"padding-left: 30px;\">(null): Directory not found for option '-F\/Applications\/Xcode.app\/Contents\/Developer\/Platforms\/iPhoneSimulator.platform\/Developer\/SDKs\/iPhoneSimulator9.2.sdk\/Developer\/Library\/Frameworks'<\/pre>\n<p>Stay tuned as I post my progress here with trying out React Native.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re using React at work for a current project. I thought I might start checking out React Native as a side project to get me working more in React and to see what I can get going on iOS. The React Native Getting Started page is pretty good, but upon trying to run the AwesomeProject <a href='https:\/\/thechunk.com\/blog\/archive\/getting-started-with-react-native\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3,123],"tags":[],"class_list":["post-4464","post","type-post","status-publish","format-standard","hentry","category-geek","category-programming","category-3-id","category-123-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3fonJ-1a0","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/posts\/4464","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/comments?post=4464"}],"version-history":[{"count":1,"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/posts\/4464\/revisions"}],"predecessor-version":[{"id":4465,"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/posts\/4464\/revisions\/4465"}],"wp:attachment":[{"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/media?parent=4464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/categories?post=4464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thechunk.com\/blog\/wp-json\/wp\/v2\/tags?post=4464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}