这是从 Facebook 官方 fork 的项目,但是由于一些需求的改动,项目的代码并不会完全一致,项目会定期从 Facebook 同步 master 源码,同时我们也会把认为合理的代码变更提给官方 PR, 但是我们 dev 分支会是 @veervr 项目使用的稳定代码;所有项目可以通过 github 的地址形式安装依赖。所有的 Feature/Bugfix 可以在 这里 看到。
React 360 is a framework for the creation of interactive 360 experiences that run in your web browser. It pairs modern APIs like WebGL and WebVR with the declarative power of React, producing applications that can be consumed through a variety of devices. Leveraging web technologies and the existing React ecosystem, React 360 aims to simplify the construction of cross-platform 360 experiences.
We've designed the React 360 developer experience to get your first project up and running in only a few minutes. Before installing the developer tools, you'll need to make sure that you have two prerequisites installed:
- Node.js version 6.0.0 or higher
yarnornpm(>= v3.0.0) package managers
Next, install the React 360 CLI – a command-line tool that generates the basic layout of new projects.
npm install -g react-360-cli
Or
yarn global add react-360-cli
You'll only need to install this CLI once. It will alert you when it's out of date, and provide instruction on how to update it.
Once installed, the CLI can be used to create a new project by running
react-360 init PROJECT_NAME
where PROJECT_NAME is the name of your new application. Once it's been created and the dependencies are installed, change your working directory to PROJECT_NAME, and start the application server by running npm start (or yarn start). You can also use --https option to run the server with https.
When the server has booted, you can access your application by navigating to http://localhost:8081/ in your web browser. Your application's code can be found in index.js, and you can learn more about available framework features by diving into our documentation.
If you encounter a bug with React 360, let us know. Search the existing issues and try to make sure your problem doesn't already exist before opening a new issue. It's helpful if you include the version of React 360, Browser, and OS you're using. Please include a stack trace and reduced repro case where appropriate.
React 360 is open source software, and we welcome contribution from the wider community. If you are able to fix your bug, or find a way to fix another existing issue, we encourage you to submit a PR to address it.
If you find a documentation typo, please don't file an issue – just create a pull request containing the fix and we will pull it into the documentation.
For more information about contributing to React 360, see our Contributor Guidelines.
React 360 is BSD licensed. We also provide an additional patent grant.
React documentation is Creative Commons licensed.
Examples provided in this repository and in the documentation are separately licensed.