@jcasman when you went through the tutorial initially, you mentioned that you couldn’t run it on iOS simulator. I had no problem running the tutorial on iOS simulator on MacOS Ventura 13.3.1, MacBook Air, Apple M1.
Is the problem you face that you can’t install Xcode? If so, what is the error you have installing Xcode?
Do you have Xcode installed and you don’t have a simulator installed?
If you’re trying to run the tutorial on a physical device iPhone or physical device Android and are connecting to a physical device RICOH THETA, then you need to allow http in addition to the default https (note the s).
However, I believe your problem was with the iOS simulator.
@craig I tried it again, it works just fine. npm start nicely installed the expo go app
› Opening on iOS...
› Opening exp://10.0.0.205:19000 on iPhone 14 Pro Max
Downloading the Expo Go app [========================================] 100% 0.0
› Press ? │ show all commands
› Opening on iOS...
› Opening exp://10.0.0.205:19000 on iPhone 14 Pro Max
› Press ? │ show all commands
iOS Bundling complete 8028ms
Maybe you were in the wrong directory before? You may want to consider adding the current working directory in your prompt. See below.
I recall that you also had a problem with the Android Virtual Device initially. In a different issue, there were problems with committing all the files with git. It’s possible that you were in the wrong directory when you ran the commands.
Including More JavaScript Tests
It would be great if you could add more commands to this repo.
As I mentioned earlier, I suspect that we’ll need to adjust http security settings before using a physical device iPhone or Pixel.
@jcasman regarding the problem where you couldn’t run the app due to promise rejection, is it possible you had an old instance of React Expo app running inside the emulator and this prevented the new instance of the React Expo app from running?
If you stop the command, npm start on the command line with CTRL-c, the app in the AVD emulator may still be running, but disconnected, thus the promise will be rejected. You may need to stop the old app before running the new app.
For example, if you completed part 1 of the tutorial and then stopped the command line program (npm start), then you try and begin part 2 of the tutorial, but you don’t clear the AVD, then you may not be able to begin part 2 of the tutorial again.
You may need to clear the running process in the AVD. One way is to use the square button. You could also restart the AVD or if you’re stuck, then do a cold boot of the AVD.
Then the cool part. Go over to the theta-javascript repo and grab some code. @erikrod1 and I are adding more API calls to the repo.
Following the video tutorial, I took the code that uses the API to set the image mode of the camera (either image or video) and dump it into the mobile app. Amazingly easy.
Need to set up a function to set up the controller part of the button. Then you need to export the new button. And import it into App.js.
You create the button in App.js. Look for the button tag but also include the view container around it.
To make more progress, you should develop a plan for what features you want to add to the mobile app. For example, we could use it to test API features such as the bitrate and file format video settings of the Z1/X.
For the interface, I still have not progressed through the section on React Navigation.
I’m at Week 4, module 6, Approaches to Passing Props to Screen, of this course.