Skip to content

Ar driving car demo #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
13 changes: 5 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# Viro Starter Kit
# AR Demos

This is a blank React Native project setup with Viro.

## Installation

1. `git clone https://github.com/ViroCommunity/starter-kit.git`
2. `cd starter-kit`
1. `git clone https://github.com/ViroCommunity/ar-demos.git`
2. `cd ar-demos`
3. `npm install`
4. `npx pod-install` (iOS)
5. `npx react-native run-android` or `npx react-native run-ios`

NOTE: The variant arguments are not needed for debug or release.

## How to Install Viro in an existing project?

If you are integrating ViroReact into an existing project, have a look at our [Installation instructions](https://github.com/ViroCommunity/viro/blob/main/readmes/INSTALL.md). Please note that this does _not_ work with Expo Managed Workflows. Sorry!
NOTE:
The variant arguments are not needed for debug or release.

# Need help?
[Reach us in Discord.](https://discord.gg/YfxDBGTxvG)
Empty file modified android/gradlew
100644 → 100755
Empty file.
27 changes: 0 additions & 27 deletions js/ARDrivingCarDemo/PlatformUtils.js

This file was deleted.

14 changes: 5 additions & 9 deletions js/ARDrivingCarDemo/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# AR Driving Car Demo
# AR Driving Car

<a href="https://github.com/viromedia/viro/tree/master/js/ARDrivingCarDemo">
<img src="https://raw.githubusercontent.com/viromedia/viro/master/js/ARDrivingCarDemo/ARDrivingCarDemo.gif">
</a>

## Setup Instructions:
1. Open `App.js` and uncomment the line at the bottom `ViroCodeSamplesSceneNavigator = require('./js/ARDrivingCarDemo/ARDrivingCar');`
2. Open `ARDrivingCar.js` and add Viro API Key
3. Start `npm` packager server and run sample
Adapted from original code from here:
https://github.com/viromedia/viro/tree/master/js/ARDrivingCarDemo

## Notes:

- React Native w/ Android doesn't support multi-touch across multiple buttons, so you can only accelerate, decelerate or turn the steering wheel individually. (The experience works better on iOS)

- Has a yellow console warning:
Warning: Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state.
Loading