expo / expo/snack

Allow embedded Snacks to view code other than the `App.js` file

Open
#326 4 comments 2 reactions 0 assignees View on GitHub
enhancement website
Dominant language
TypeScript
Stars
510
Forks
178
Avg merge
5h 7m
Merged PRs (30d)
5

Description

We'd need a property to set the file to view in an embedded Snack. We need this for Skia, to open `Breathe.tsx` instead of `App.tsx`. With that, users can edit the breathe logic to preview it, while still keeping the web-wrapping logic in the entrypoint.

Contributor guide

Open the contributing guide

Research direction

Start by locating the embedded Snack entrypoint and the current logic that opens App.js or App.tsx. Read how the embedded file is selected, then compare the requested Breathe.tsx use case. Done means an embedded Snack can specify another file for viewing while retaining its entrypoint for the web-wrapping logic.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.