Yarn is overwritten by another package called cmdlet or something like that. You have to remove that package then use npm install -g yarn to install yarn. Then you can enter the command yarn and it starts to load the appropriate packages.
Link to a lotide mobile app (no compiled versions yet)
Submitted 2 years ago by sj_zero to Programming
https://github.com/ProjectHoot/hoot-mobile/
Comments
sj_zero 2 years ago
sj_zero 2 years ago
In App.tsx, I had to modify the acceptable API version.
useEffect(() => { if (!ctx?.apiUrl) return; LotideService.getInstanceInfo(ctx) .then(data => { console.log(ctx); console.log("version", data.apiVersion); if (data.apiVersion < 8 || data.apiVersion > 10) throw "Bad version"; if (data.apiVersion == ctx.apiVersion) return; applyNewContext({ ...ctx, apiVersion: data.apiVersion, }); })
Becomes
useEffect(() => { if (!ctx?.apiUrl) return; LotideService.getInstanceInfo(ctx) .then(data => { console.log(ctx); console.log("version", data.apiVersion); if (data.apiVersion < 8 || data.apiVersion > 12) throw "Bad version"; if (data.apiVersion == ctx.apiVersion) return; applyNewContext({ ...ctx, apiVersion: data.apiVersion, }); })
sj_zero 2 years ago
Ok, once yarn is set up and ready and node.js is happy, you go yarn start -- This will show a qr code you scan. You run expo on your phone and that displays the app.
sj_zero 2 years ago
had to do a big upgrade of my node.js install next using n
sj_zero 2 years ago
I'd like to see if I can compile...
sj_zero 1 year ago
Came back to recompile (Why didn't I remove the upper version limit altogether at the time?!), the new command line is eas.
I also tried to upgrade as many of the underlying libraries as possible.
sj_zero 1 year ago
http://fbxl.net/hoot.apk
This is fine, but it's not perfect. I might just hide the buttons that make it crash for now though, since I don't know enough about the code to make it work...