【问题标题】:How do you animate the outgoing transition of a splash screen in react native您如何在本机反应中为启动画面的传出过渡设置动画
【发布时间】:2020-08-17 17:03:31
【问题描述】:

我使用 react-native-splash-screen 插件创建了一个 android 启动画面。但是,我必须在主应用程序屏幕加载之前为启动屏幕进行缩小过渡。有谁知道怎么做?

【问题讨论】:

    标签: android react-native android-studio


    【解决方案1】:

    您可以使用库的变体来做到这一点:

    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>
        );
      }
    

    看看docs

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-05-23
      • 1970-01-01
      • 1970-01-01
      • 2019-02-24
      • 2022-10-08
      • 2020-07-25
      • 2018-08-04
      相关资源
      最近更新 更多