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

[Android] change image -> npm install -> changes gone #21

Open
skizzo opened this issue Apr 28, 2016 · 1 comment
Open

[Android] change image -> npm install -> changes gone #21

skizzo opened this issue Apr 28, 2016 · 1 comment

Comments

@skizzo
Copy link

skizzo commented Apr 28, 2016

Hi,
on Android, how would I put my splash image into my React Native project itself? The problem with the current solution is that it's stored in the node_modules folder which means that every time I call rm -rf node_modules && npm install, I have to change splash.png again.
Thanks!

@mehcode
Copy link

mehcode commented Aug 11, 2016

@skizzo You're supposed to add the resource to your project's assets. As long as you name it splash it will work as android will merge resources and prioritize the app over the libraries.

See https://github.com/mehcode/rn-splash-screen/blob/master/docs/android.md for extensive documentation and examples.

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

No branches or pull requests

2 participants