react-native-form-builder icon indicating copy to clipboard operation
react-native-form-builder copied to clipboard

How to add multiple level nesting

Open Ivona221 opened this issue 7 years ago • 3 comments

I am trying to do a multiple level nesting meaning i want to add a group element inside another group element. However i get the following error: screenshot_5

The thing i am trying to do is :

const fields = [ { type: 'group', name: 'address', label: 'Address', fields: [ { type: 'group', name: 'Address2', label: 'Address2', fields:[ { type: 'text', name: 'Name', label: 'Name', }, ] }, { type: 'picker', name: 'country', label: 'Country', defaultValue: 'INDIA', options: ['US', 'INDIA', 'UK', 'CHINA', 'FRANCE'], }, ], }, { type: 'text', name: 'user_name', required: true, icon: 'ios-person', label: 'Username', }, ];

Ivona221 avatar Nov 26 '18 16:11 Ivona221

Can you tell me which version you're using, if on latest then can try with 1.0.15.

bietkul avatar Nov 26 '18 18:11 bietkul

I was using version 1.0.16. I also tried with 1.0.15 but i get the same error.

Ivona221 avatar Nov 27 '18 07:11 Ivona221

Multilevel nesting is not supported by this library, you can try react-reactive-form to achieve it.

bietkul avatar Dec 07 '18 14:12 bietkul