Barebones example of using theta-javascript in a React Native Expo app.
Works with both fake-theta (no camera API simulator) and a physical device.
In App.js
, change the urlEndpoint
constant.
export default function App() {
// fake-theta
const urlEndpoint = "https://fake-theta.vercel.app/osc/";
// real theta physical device in access point mode
// const urlEndpoint = "http://192.168.1.1/osc/";
// end camera endpoint config