小编Kal*_*nga的帖子

反应本机推送通知无法构建

我使用反应本机推送通知来查看我的通知。但是当我安装这个包时,会出现构建错误。我使用这个github链接来安装

https://github.com/zo0r/react-native-push-notification

但是当我运行 React Native 项目时,它在我的 Linux 电脑上显示此错误消息。

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-push-notification:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Run Code Online (Sandbox Code Playgroud)

如何修复这个错误?

push-notification react-native

5
推荐指数
1
解决办法
4566
查看次数

想在 vuejs 中使用 vuetify snapbar 作为全局自定义组件

我使用snackbar 在vuejs 中显示成功消息。我想制作一个全局自定义小吃店组件。

<template>
  <div name="snackbars">
    <v-snackbar
      v-model="snackbar"
      :color="color"
      :timeout="timeout"
      :top="'top'"
    >
      {{ text }}

      <template v-slot:action="{ attrs }">
        <v-btn dark text v-bind="attrs" @click="snackbar = false">
          Close
        </v-btn>
      </template>
    </v-snackbar>
  </div>
</template>

<script>
export default {
  props: {
    snackbar: {
      type: Boolean,
      required: true,
    },
    color: {
      type: String,
      required: false,
      default: "success",
    },
    timeout: {
      type: Number,
      required: false,
      default: 3000,
    },
    text: {
      type: String,
      required: true,
    },
  },
};
</script>
Run Code Online (Sandbox Code Playgroud)

然后我将它作为组件导入到我的每个表单中。

<SnackBar :snackbar="snackbar" :color="color" :text="text" />
Run Code Online (Sandbox Code Playgroud)

但我的问题是我不能在我的子组件中使用小吃店作为道具。它向我展示了这个错误。 …

vue.js vuetify.js

5
推荐指数
2
解决办法
5132
查看次数