代码之家  ›  专栏  ›  技术社区  ›  asus

反应本机元素-更改内部组件样式

  •  0
  • asus  · 技术社区  · 4 年前

    我正在使用RNE的搜索栏,但我设置了一个自定义边界,使边界的底部部分消失。我想访问Searchbar的内部元素并添加填充或边距来修复它,但不知道如何修复。

    Input

    所以在我的代码中,我尝试这样访问它

    const StyledSearchBar = styled(SearchBar).attrs({
      containerStyle: {
        backgroundColor: defaultWhite,
      },
      inputContainerStyle: {
        backgroundColor: defaultWhite,
        borderColor: defaultPrimary,
        borderRadius: 20,
        borderWidth: 1,
        marginBottom: 25,
      },
      inputStyle: {},
      AnimatedComponent: {
        paddingBottom: 50,
      },
    })``
    

    1

    2

    0 回复  |  直到 4 年前