mehcode / rn-splash-screen

A JavaScript-controlled splash-screen for React Native designed to be run directly after the native splash-screen.
MIT License
350 stars 95 forks source link

[Android] error: cannot find symbol new SplashScreenPackage() #9

Closed mvaivre closed 8 years ago

mvaivre commented 8 years ago

It seems that the import to be done in MainApplication.java is incorrect (import com.mehcode.reactnative.splashscreen.SplashScreen;).

But if I try to import SplashScreenPackage instead, I get a nice:

image

I'm not a Java dev. so maybe the error cause is somewhere else...

The best thing to do on your side is probably to create the example (https://github.com/mehcode/rn-splash-screen/issues/1) - or even better - two examples: one with RN < 0.29 and another with RN > 0.29.

This would be so nice!

mehcode commented 8 years ago

Working on the android example right now. Definitely confusing as it stands.

mehcode commented 8 years ago

@mvaivre Revised documentation has been added -- working on finishing the example

mehcode commented 8 years ago

@mvaivre Example is now available for android

mvaivre commented 8 years ago

Wow, that was fast! Thanks a lot @mehcode !