carozo / slimy

This is the animations training app for the React Native team at Xmartlabs.
16 stars 0 forks source link

Migrate to Expo #1

Closed lucasloisp closed 3 weeks ago

lucasloisp commented 3 weeks ago

Migrates the app that into Expo, following its most basic template (create-expo-app) which includes Expo Router. Most of the screens are moved to satisfy this requirement, as Expo Router uses a file-based structure for building navigators. Aside from that, the intent was to preserve as much of the existing file structure as possible.

Most of the dependencies were fresh installed, and thus bumped — we're now on prettier 3.3.1, and all files were reformatted to match (mostly semicolon related, nothing too fancy). Another important note is that some files were removed, as they were unused. Some of that code was about .svg imports, which I did not find in use, but I might be missing context and perhaps they were intended as a part of one of the challenges.

The goal with this migration is simplifying the setup necessary by those trying to use Slimy to learn. By using the standard Expo template, along with commonplace dependencies, we're able to run Slimy on Expo Go, which removes the need for any native setup or compilation step, reducing the setup to "install and start", plus scanning a QR code. Additionally, relying on Expo arguably makes the code more direct, as the vast majority is now directly related to Slimy and its animations.

Functionality wise, there are no (intended) changes to Slimy or any of the flows.

lucasloisp commented 3 weeks ago

@carozo I just updated the branch, should be good to merge now!