Skip to content

Latest commit

 

History

History
38 lines (33 loc) · 1.81 KB

README.md

File metadata and controls

38 lines (33 loc) · 1.81 KB

README

This repo is a simple react-native example for anyone to:

  • View Web based AR experiences inside a WebView
  • Test JavaScript WebRTC / Camera access via getUserMedia inside a WebView
  • Implement WebGL to native effects outside of a WebView e.g. fancy camera filters
  • Implement Camera to native access/effects outside of a WebView e.g. take a photo to upload
  • Implement Videos to native outside of a WebView e.g. Video Backgrounds for login

Keypoints

The Application - as default - views another test application I have hosted on GitHub pages (https://github.com/marcusbelcher/wasm-asm-camera-webgl-test) for WebView tests.

Build

  • Install Node.JS, NPM, and Yarn
  • Install React Native and follow the 'Building Projects with Native Code' for Android instructions (https://facebook.github.io/react-native/docs/getting-started.html)
  • In a terminal go to the directory where you checked this repo out, Yarn install
  • Plugin an android phone
  • In the terminal enter react-native start --reset-cache
  • In another terminal enter react-native run-android

3rd Parties

  • react
  • react-native
  • react-native-camera
  • react-native-video
  • react-native-webgl
  • 'org.webrtc:google-webrtc:1.0.+'

Problems encountered