Skip to content
This repository was archived by the owner on Dec 15, 2020. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tutorial.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@
but not yet supported by all browsers, so a translation step is often necessary.
React Native ships with ES2015 support, so you can use it without worrying about compatibility.
<code>import</code>, <code>from</code>, <code>class</code>, <code>extends</code>, and the <code>() =&gt;</code> syntax in the example above are all ES2015 features.
<a href="https://babeljs.io/docs/learn-es2015/" target="_blank">This page</a> has a good overview of ES2015 features.</li></ul><p>The statements such as <code>&lt;Text style={{ fontSize: 0.8, ...}}&gt;hello&lt;/Text&gt;</code> above make use of JSX, which is ultimately translated into JavaScipt. For more information, see <a href="docs/reactvr-overview.html" target="_blank">React VR Overview</a>.</p><h2><a class="anchor" name="appregistry"></a>AppRegistry <a class="hash-link" href="docs/tutorial.html#appregistry">#</a></h2><p>Our Hello World sample defines <code>WelcomeToVR</code> as a new <code>Component</code> and registers it with the <code>AppRegistry</code>. The <code>AppRegistry</code> tells React VR which component is the root for the whole application.
<a href="https://babeljs.io/docs/learn-es2015/" target="_blank">This page</a> has a good overview of ES2015 features.</li></ul><p>The statements such as <code>&lt;Text style={{ fontSize: 0.8, ...}}&gt;hello&lt;/Text&gt;</code> above make use of JSX, which is ultimately translated into JavaScipt. For more information, see <a href="docs/react-vroverview.html" target="_blank">React VR Overview</a>.</p><h2><a class="anchor" name="appregistry"></a>AppRegistry <a class="hash-link" href="docs/tutorial.html#appregistry">#</a></h2><p>Our Hello World sample defines <code>WelcomeToVR</code> as a new <code>Component</code> and registers it with the <code>AppRegistry</code>. The <code>AppRegistry</code> tells React VR which component is the root for the whole application.
You don&#x27;t need to think about <code>AppRegistry</code> a lot, as there will probably just be one call to <code>AppRegistry.registerComponent</code> in the whole app.
It is included above so that you can paste the whole thing into your <code>index.vr.js</code> file and get it running.</p><p>When you&#x27;re building a React VR app, you&#x27;ll be making lots of new components. Anything you see on the screen is some sort of component. A component can be very simple; the only thing that&#x27;s required is a <code>render</code> function that returns some JSX to render.</p></div><div class="docs-prevnext"><a class="docs-prev" href="docs/getting-started.html#content">← Prev</a><a class="docs-next" href="docs/project-configuration.html#content">Next →</a></div><p class="edit-page-block">You can <a target="_blank" href="https://github.com/facebookincubator/react-vr/blob/master/docs/Tutorial.md">edit the content above on GitHub</a> and send us a pull request!</p></div></section><footer class="nav-footer"><section class="sitemap"><a href="./index.html" class="nav-home"><img src="img/header_logo.png" alt="React Native" width="66" height="58"></a><div><h5>Docs</h5><a href="docs/getting-started.html">Getting Started</a><a href="docs/tutorial.html">Tutorial</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"></a><section class="copyright">Copyright © 2016 Facebook Inc.</section></footer></div><div id="fb-root"></div><script src="js/scripts.js"></script></body></html>
It is included above so that you can paste the whole thing into your <code>index.vr.js</code> file and get it running.</p><p>When you&#x27;re building a React VR app, you&#x27;ll be making lots of new components. Anything you see on the screen is some sort of component. A component can be very simple; the only thing that&#x27;s required is a <code>render</code> function that returns some JSX to render.</p></div><div class="docs-prevnext"><a class="docs-prev" href="docs/getting-started.html#content">← Prev</a><a class="docs-next" href="docs/project-configuration.html#content">Next →</a></div><p class="edit-page-block">You can <a target="_blank" href="https://github.com/facebookincubator/react-vr/blob/master/docs/Tutorial.md">edit the content above on GitHub</a> and send us a pull request!</p></div></section><footer class="nav-footer"><section class="sitemap"><a href="./index.html" class="nav-home"><img src="img/header_logo.png" alt="React Native" width="66" height="58"></a><div><h5>Docs</h5><a href="docs/getting-started.html">Getting Started</a><a href="docs/tutorial.html">Tutorial</a></div></section><a href="https://code.facebook.com/projects/" target="_blank" class="fbOpenSource"><img src="img/oss_logo.png" alt="Facebook Open Source" width="170" height="45"></a><section class="copyright">Copyright © 2016 Facebook Inc.</section></footer></div><div id="fb-root"></div><script src="js/scripts.js"></script></body></html>