bietkul / react-native-form-builder

Handle your forms in a smart way
MIT License
121 stars 68 forks source link

Group Custom Components will not show up on form #4

Closed tristan-secord closed 6 years ago

tristan-secord commented 6 years ago

Trying to group custom components together. Ends up not showing on form at all. Grouping components built into form builder works fine, and showing custom components outside of grouping works as well. Here is the code. Any help would be appreciated...

    {
      type: 'group',
      name: 'hardware_issues',
      fields: [
        {
          type: "customSelect",
          multiline: true,
          placeholder: descriptionPlaceholder,
          name: "appliances",
          title: "Appliances",
          formOptions: {
            category: "Hardware & OS",
          },
        },
        {
          type: "customSelect",
          multiline: true,
          placeholder: descriptionPlaceholder,
          name: "peripheral",
          title: "Peripherals",
          formOptions: {
            category: "Hardware & OS",
          },
        },
      ],
    },
tristan-secord commented 6 years ago

Small change to code Here is the PR https://github.com/bietkul/react-native-form-builder/pull/5

bietkul commented 6 years ago

Looks great!