1

我正在尝试在不触及全局主题的情况下更改 UI Kitten Datepicker 的背景和边框颜色的颜色。我还在 React Hook Form Controller 中使用 Datepicker,它似乎不像 Datepicker,但是,到目前为止,Datepicker 中的所有其他功能都在其中工作。

到目前为止,使用带有背景样式和样式的 StyleSheet 组件都没有运气。

到目前为止我所拥有的:

<Controller
      as={Datepicker}
      control={control}
      name="date"
      defaultValue={date}
      onSelect={(date: any) => setDatePicker(date)}
      date={dateSearched}
      accessoryLeft={CalendarIcon}
      accessoryRight={resetFormInput}
      backdropStyle={styles.input}
      style={styles.input}
  />
4

0 回答 0