Comments (7)
@itsyogesh I published it here: https://github.com/zoontek/react-native-bootsplash-lottie-example
Unfortunately, there currently no way to be sure that the animation is loaded in lottie-react-native
(see lottie-react-native/lottie-react-native#316), but in release mode by referencing the filename and not parsing the animation JSON at runtime, it should be quite quick!
I published a video on Youtube (1080p encoding is still processing for now): https://www.youtube.com/watch?v=8Mgqk05O-4w
from react-native-bootsplash.
@itsyogesh Hi π Sorry I'm not a big fan of gif because the ratio weight / image quality is horrible π
But you can create a continuity between the splash screen and the logo animation, like in the example project and use use Lottie with react-native-lottie to create kick-ass animations (instead of Animated
. It requires some After Effects skills, but it's totally doable regardless of the platform (iOS / Android) π
from react-native-bootsplash.
Hey, yup I agree completely with the image quality (and the size for good quality ones), but you gotta start somewhere π . What I can't seem to wrap my head around is how would you go about building that continuity screen, the one you show after the splash.
Okay so after some digging, I did find that we could use Lottie directly as an XML (http://airbnb.io/lottie/#/android?id=from-xml), is there a way we could use that as a basis for the RNBootSplashActivity
, otherwise there would be another huge issue around deep linking stuff if we create a new activity that acts as a continuous screen from the splash page.
For iOS, I have no clue at all, from the article it seems that in the Bootsplash Controller bootsplash.m
, we need to add a viewDidShow
and then inside that we call the AnimationView (http://airbnb.io/lottie/#/ios?id=animation-view) and load it there.
I hope I am making some sense. I have zero experience with native dev so all these questions might seem rudimentary or out of place.
from react-native-bootsplash.
@itsyogesh I would recommend not to implement them on the native side, it's too much complexity for a very small gain. I will create a small repository tomorrow using an animation from https://lottiefiles.com so you can understand how it can be done π
from react-native-bootsplash.
Oh interesting, so my only worry with doing it on the JS side was that the time taken to load the JS bundle would be unpredictable and the animation won't start until the bundle is loaded. Do you think the asset loading would make it instant?
from react-native-bootsplash.
@itsyogesh As I know, it's possible to reference assets from /assets
dir on Android or NSBundle on iOS so only the filename will cross the bridge, not the full json.
from react-native-bootsplash.
@itsyogesh Is this solution OK for you? π
from react-native-bootsplash.
Related Issues (20)
- Updating README for iOS HOT 1
- Background image and linear gradient baackground color
- Splash Screen Reappears During Screen Transitions on Android HOT 10
- Crash on Android <= 9 - Attempt to invoke virtual method Drawable.isProjected() on a null object reference - solved in 5.1.2 HOT 2
- Bug when assembleeRelease HOT 1
- iOS error during debug scheme starting HOT 2
- How can i show code push progress bar in splash screen? HOT 1
- Output/Document need to manually create missing images HOT 1
- Default Android system splashscreen appears before my custom splashscreen HOT 1
- Add option to use system scheme instead of scheme returned by useColorScheme in useHideAnimation HOT 6
- ζε¨ε±εΉδΈι΄ζΎδΈδΈͺlogo,ζθΏιθ¦ε¨ε±εΉεΊι¨ζΎδΊζε,θ¦ζδΉεε’?
- Add plugin for nx HOT 1
- splash icon disappeared in android HOT 3
- Adding android:windowBackground causes it to appear after original splash hides HOT 3
- Generated background has incorrect color HOT 6
- Generate splashscreen HOT 1
- iOS: building failed with RN 0.73 and new arch enabled HOT 3
- RN 0.74 - How to avoid `createRootViewWithBridge` HOT 1
- Small icon size on Samsung devices with Android 12 HOT 3
- Expo config plugin overrides AppDelegate imports from other plugins HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-bootsplash.