Videos
Hello,
I've been trying to deploy my app on Snack to allow ppl to test it with a simulator right away, but, even tho the project works flawless on my iOS on Expo Go on local machine and on a docker container, I can't seem to be able to use it on the mobile version of Snack.
First, I ran into a lot of compatible issues due to my package.json being formated different than what Snack allows(Only dependencies), but now the app is succesfully working on the web version, but it seems to be getting this error whenever I try iOS or Android that async functions aren't supported. Doesn't work even on my own phone when I try to run the Snack build on Expo Go, but works just as fine the development server ran on docker, which is the exactly same code.
Now, is async functions really unsupported just on Snack, is it a format problem or is it a issue I'll run into when deploying the app live? I tried looking on Expo docs, but I couldn't find any mentions to this. I want to deploy on Apple store first, but I'm waiting for my MBP to arrive, if they aren't allowed I might as well start rebuilding my logic, since I use them a lot, specially on api calls.
Is there a different way to showcase my app in an online iOS simulator like Snack that wouldn't run into this? This is my first project and I'm really enjoying it, but deploying this front-end on the web for users to test it has been the first wall I have not found a way to crack it.
Simply import the package in your js file and you will see a propmt asking you to install the dependency. Click on the Add dependency link and it will automatically add the package to your package.json.
You can read more about this at Expo Snack Documentation
If anyone is still confused in 2024, you should add a package directly to the package.json file and just save that file. It will run npm install.
And there is a list of available packages that snack supports which is frequently updated. So not all packages are supported.
https://forums.expo.dev/t/modules-available-in-snack/1651
Has anyone attended the Snaxpo? Geared towards packaged snack foods. I just came across it, is it worth going to? Or if you haven't been to that one specifically, do you find expo events to be useful in your field? I'm new to owning a business and just want to get good info, make solid connections and exchange ideas for my industry. Thanks!