Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoded sys images paths and use newest image for quick device creation #64

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

kmagiera
Copy link
Member

@kmagiera kmagiera commented Apr 2, 2024

This PR removes hardcoded system image paths that were used when user had no simulators created.

As a result, the buttons "Create iPhone" or "Create Android" would do nothing, because we wouldn't be able to find the exact image that was hardcoded.

Now, instead of exepecting some particular image, we select the newest available image both for iOS and Android.

We also change text on the buttons such that we no longer show the exact name of the device. It wasn't helpful to name the device and on some some resolutions it the spinner that appears on the button was causing the longer text to be misplaced.

Copy link

vercel bot commented Apr 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
react-native-ide ✅ Ready (Inspect) Visit Preview Apr 2, 2024 8:25am

@kmagiera kmagiera merged commit 5099726 into main Apr 2, 2024
3 checks passed
@kmagiera kmagiera deleted the kmagiera/dont-hardcode-image-paths branch April 2, 2024 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant