小编use*_*135的帖子

在 react-native-web (expo) 聚焦时更改 TextInput 的边框颜色

在 Expo 的最新版本中,有一个 Web 支持。在图片中,您会看到一个使用 React Native 创建并在 Web 中呈现的普通 TextInput。

如何更改在焦点上激活的 TextInput Border 的颜色?您会在 TextInput 周围看到橙色边框。你知道如何在 react-native 中改变这一点吗?

使用 react-native-web 创建的 TextInput

textinput react-native react-native-web expo expo-web

6
推荐指数
2
解决办法
3046
查看次数

GitHub Actions 失败并出现 Gatsby 错误:输入文件包含不受支持的图像格式

我的网站使用 Gatsby 和 NetlifyCMS,目前在GitHub Actions运行工作流程时收到以下错误消息:

error "gatsby-plugin-manifest" threw an error while running the onPostBootstrap lifecycle:

Error: Input file contains unsupported image format
Run Code Online (Sandbox Code Playgroud)

很奇怪的是,在我的本地系统上使用gatsbydevelopgatsbybuild并没有出现该错误

我的插件数组如下所示:

plugins: [
    {
      resolve: `gatsby-plugin-typography`,
      options: {
        pathToConfigModule: `src/utils/typography`,
      },
    },
    {
      // keep as first gatsby-source-filesystem plugin for gatsby image support
      resolve: "gatsby-source-filesystem",
      options: {
        path: `${__dirname}/static/img`,
        name: "uploads",
      },
    },
    `gatsby-plugin-smoothscroll`,
    `gatsby-plugin-react-helmet`,
    `gatsby-plugin-twitter`,
    {
      resolve: "gatsby-plugin-netlify-cms",
      options: {
        modulePath: `${__dirname}/src/cms/cms.js`,
        htmlFavicon: `src/images/favicon.png`,
      },
    },
    `gatsby-plugin-no-index`,
    `gatsby-plugin-transition-link`, …
Run Code Online (Sandbox Code Playgroud)

gatsby netlify github-actions gatsby-image gatsby-plugin

6
推荐指数
1
解决办法
3052
查看次数

我如何使用地图中的地图的put()方法

这是我创建的地图中的地图

private static Map<Integer, Map<String, String>> directory = new HashMap<>();
Run Code Online (Sandbox Code Playgroud)

我想知道如何使用上面的put()方法.

我试过这个例子:

directory.put(5,"Test1","Test2");
Run Code Online (Sandbox Code Playgroud)

但这不正确.我通过eclipse得到以下消息:

The method put(Integer, Map<String,String>) in the type Map<Integer,Map<String,String>> is not applicable for the arguments (int, String, String)
Run Code Online (Sandbox Code Playgroud)

但我必须坚持大学的指导方针.有一个JUnitTest,还有put方法.看看他们是怎么做到的:

addEntry(1, "Name", "Dall", "FirstName", "Karl", "phoneNr", "4711");
Run Code Online (Sandbox Code Playgroud)

这就是我在大学里的addEntry方法

public static void addEntry(int nrP, String... attrValPairs) throws IllegalArgumentException
Run Code Online (Sandbox Code Playgroud)

java hashmap map

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