You can nest oneOf() into oneOfType() like that PropTypes.oneOfType([ PropTypes.bool, PropTypes.oneOf(['autohide']) ]).
確定! 回上一頁