Closed jtklein closed 7 months ago
Looked into this today and I need some intput from @abhasinat to move forward, specifically I need to know which of the many photo backgrounds in the designs he wants to use, or if he actually wants the background photo to vary by device size, device model, randomly, or something else. Since he's out for a while, I'll assign this to him and punt this to the next feature iteration. FWIW, there's a POC of plain, single-photo iOS updates in https://github.com/inaturalist/iNaturalistReactNative/tree/898-splash-screen
FWIW, using a photo background may run afoul of iOS's memory usage restrictions. When I add a photo to the launcher layout in XCode it complains about this and says the photo may not display during app launch, and that is indeed what I observe when I run a dev build on a real device. When I run a Release build on a real device the photo doesn't appear either, but the splash appears so briefly that you barely even notice.
A package like https://github.com/zoontek/react-native-bootsplash may provide us with more flexibility with splash screen content, but we will probably still run into memory constraints, or have issues with the photo loading later than the bird logo. It would provide us with some more in-app control over keeping the splash on screen while we do things like set up Realm, plus we could more easily add a bit of animation.
SImplified this design in Figma. fwiw- I think we did this in Seek and I really like it. I'd be open to an animation on the splash screen in the future as well
The current Figma designs show the "blue wing background" splash screen, even though that matches the "blue wing background" app icon that I think we don't want, so I need input form Abhas again on what we actually want here.
Ok, this is not working for me. I've tried
react-native-bootsplash
: it doesn't support image backgrounds because it doesn't seem doable on AndroidSo, I have no idea what's going on here. I suspect some weird XCode evil is happening and I just don't know what secret checkbox isn't being checked. Either someone with more experience needs to walk me through this, or someone else needs to give this a try, or we give up on this and keep the (IMO) more sensible white logo on a green background.
My last failed attempt at this is in https://github.com/inaturalist/iNaturalistReactNative/tree/898-splash-screen
And now it's working, w/ help from Alex and Amanda. Some important things I've learned about iOS splash/launch screens:
UIImage
with an alpha of something less than 1, iOS won't show it
Restyle the Splash screen according to the current designs.