React Native Elements-更改内部组件样式

问题描述

我正在使用RNE的SearchBar,但是我设置了一个自定义边框,该边框使边框的底部部分消失。我想访问Searchbar的内部元素,并添加padding或margin来修复它,但是不知道如何。

屏幕截图下方是检查器视图,它指向Input

所以在我的代码中,我试图以这种方式访问​​它

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

是否可以通过RN或使用RNE访问子组件?

1

2

解决方法

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

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

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