0

我正在建立一个医生登记表,我想要在同一行显示开始时间和结束时间,我正在使用 tcomb-form-native 库,在文档中我没有找到设置 felx 1 的方法和felxdirection 到行的选择组件。I did my work using normal Picker component but the problem is that when the state of picker component changes, it clears the whole tcomb form.

4

1 回答 1

0

因为我看不到你的代码。我不能清楚地告诉你,但试试这个。


<View style={{ flexDirection: 'row', justifyContent: 'space-between'}}>
   <View style={{ width: 100}}>
      <Form/>
   </View>
  <View style={{ width: 100}}>
      <Form/>
   </View>
</View>
于 2019-04-20T13:33:55.250 回答