![](/img/trans.png)
[英]How do you make a launch/splash screen for android in React-Native?
[英]How do you animate the outgoing transition of a splash screen in react native
我使用 react-native-splash-screen 插件創建了一個 android 啟動畫面。 但是,我必須在主應用程序屏幕加載之前為啟動屏幕進行縮小過渡。 有誰知道如何做到這一點?
您可以使用庫的變體來做到這一點:
import AnimatedSplash from "react-native-animated-splash-screen";
render() {
return (
<AnimatedSplash
translucent={true}
isLoaded={this.state.isLoaded}
logoImage={require("./assets/logo.png")}
backgroundColor={"#262626"}
logoHeight={150}
logoWidth={150}
>
<App />
</AnimatedSplash>
);
}
只需查看文檔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.