Skip to content

uniforms library not supported #15

@waheed25

Description

@waheed25

i want to pass a component to react json schema which is the imported from uniforms bootstrap4 this is the library for json forms i want to passs this component to react json schema like that
import AutoForm from 'uniforms-bootstrap4/AutoForm';
but when i am passing this to children it didn't render anything

`const schema = {
component: 'div',
children:[{
component:'AutoForm',
props: {
// validate:"onSubmit",
schema:loginSchema,
// onSubmit:(docs) =>{console.log('submit')},
// placeholder:true,
// label:true
},
}]

};

and here is my login schema

`const loginSchema = new SimpleSchema({
email: {
type: String,
max: 50,
regEx: SimpleSchema.RegEx.Email,
uniforms:{
placeholder:'Email',label:false,
type: 'email'
}
},
password:
{
type: String,
max: 100,
uniforms: {type: 'password',
placeholder:'Password',label:false

  }
  },

Remember: {
type: Boolean,
label:'Remember me',
defaultValue: false,
optional:true,
uniforms: {type: 'password',
placeholder:'Password',

}

},
});`
export default () => parseJsonSchema(schema);

other components are rendering but not this one

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions