如何使用Expo将Lottie动画设置为背景动画

问题描述

我希望能够将很多动画作为背景。

这是我目前使用native-base和expo的即时通讯。

<Container>
        <Header
          iosBarStyle
          androidStatusBarColor
          style={{ backgroundColor: "#222831" }}
        >
          <Body
            style={{
              flex: 1,justifyContent: "center",alignItems: "center",}}
          ></Body>
        </Header>
        <Content>
          <Button
            block
            style={{ margin: 20,marginTop: 150 }}
            primary
            onPress={() => {
              this.props.navigation.navigate("Login");
            }}
          >
            <Text>LOGIN</Text>
          </Button>
          <Button
            block
            style={{ margin: 20,marginTop: 20 }}
            success
            onPress={() => {
              this.props.navigation.navigate("Signup");
            }}
          >
            <Text>SIGNUP</Text>
          </Button>
        </Content>
      </Container>

我希望具有相同的布局,但我希望将抽奖动画作为背景而不是白色背景。

如何处理布局。我知道如何添加抽奖动画,但我不知道如何在顶部放置相同的布局。

这是我当前的布局:

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)