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