React proptype wrapper for joi validation.