Skip to content
ARKit 2, ViroReact Image Detection Project
JavaScript Objective-C Shell Starlark Java Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
__tests__
android
ios
js
.buckconfig
.flowconfig
.gitattributes
.gitignore
.watchmanconfig
App.js
README.md
app.json
babel.config.js
demo.gif
index.android.js
index.ios.js
index.js
metro.config.js
package.json
rn-cli.config.js
setup-ide.sh
yarn.lock

README.md

Sample for ARKit 2 continuos image tracking behavior

demo

  • Clone the repo

  • yarn or npm install

  • npm start

  • open ViroMedia testbed app and run project from it.

Developing with XCode

cd ios
pod install
  • Update RCTWebSocket Project

    • Open Xcode Workspace.
    • RCTWebSocket Target -> Build Phases -> Link Binary With Libraries and replace the unresolved libfishhook.a with the correct one under RCTWebSocket.xcodeproj -> Products

    from: https://github.com/facebook/react-native/issues/19569

  • Running an app

    • Open workspace in Xcode and build for device

    • Update signing for correct team

    • Build with Xcode with physical device connected (with ARKit 2 support)

    • Print the following image:

    • demo

      If you are not able to print it in color, change the marker image to black and white in js/res/heart.png

      Point app to business card and get additional AR Content.

Troubleshooting

if you have config.h build error -

cd ./node_modules/react-native/third-party/glog-0.3.4 && ../../scripts/ios-configure-glog.sh (based on https://github.com/facebook/react-native/issues/19774)

You can’t perform that action at this time.