Importing from Github

The import option gives the following message:

Import JavaScript files from your computer or a GitHub repository to use in your expo project.

However, only browse button seems to be available which allows uploading files from computer.
How to import files directly from Github repo?

1 Like

hey @aayush123, we are currently working on this feature, sorry it is not available yet! cc: @thetc

1 Like

Are you still working on this feature?

Hey @yamilquery,

We are currently waiting for a PR to be reviewed and merge to add this feature. The SDK26 release really shook things up, but hopefully we can get this feature rolled out soon.

Thanks for your patience,

Adam

Hi Adam,

Any news about this mentioned PR review? Looking forward to hear this github integration feature release :slight_smile:

Hi @adamjnav,

any news? It is going to be possible to use repos from other repo providers (Microsoft Azure DevOps)?

Thank you

Hey @benjaminheinke,

Importing from a git repository is available in Snack already. As far as I know there aren’t any current and active plans to add support for other repo providers, but we’d welcome a Feature Request on our Canny: Feature Requests | Expo

Also one thing of import, the repo must be publicly accessible to be imported as well.

Cheers,

Adam

Hey @benjaminheinke,
You can access the git import via this option in the project menu:

Provided you have a publicly accessible, git repo containing a valid expo project for an SDK version supported by the latest version of the client, you should be good to go.

1 Like

@thetc @adamjnav
Thank you for your fast responses. I would like to use Snack (to be able to continue to code on whatever computer/work computer where I don’t have a code editor) with a private repo, I don’t want my code to be public…

1 Like

This feature has worked for me in the past. But does not currently seem to work. Is anyone else experiencing issues with it?

I am having this problem, not able to import “expo-file-system” into snacks. Throws below error:

An error occurred during import. This could be because the data provided was invalid, or because the repository referenced is not a properly formatted Expo project.