score:5

Accepted answer

i think this is happening because you are setting isrequired on the types inside of the oneoftype. you should set it on the outer proptypes. i think this might work

processinfovalues: proptypes.oneoftype([
  proptypes.bool,
  proptypes.object,
]).isrequired

More Query from same tag