Example #1
0
    closeDrawer: (props, propName, component) => {
      removed(props, propName);

      const { PERSISTENT, PERSISTENT_MINI } = NavigationDrawer.DrawerType;
      const { drawerType } = props;
      if(drawerType !== PERSISTENT && drawerType !== PERSISTENT_MINI) {
        return;
      }

      return PropTypes.func.isRequired(props, propName, component)
        || PropTypes.string(props, 'closeIconClassName', component)
        || PropTypes.node(props, 'closeIconChildren', component);
    },
Example #2
0
 containerClassName: (props, propName, component) => {
   deprecate(props, propName, component, 'className');
   return PropTypes.string(props, propName, component);
 },
Example #3
0
 title: (props, propName, component) => {
   deprecate(props, propName, component, 'drawerTitle');
   return PropTypes.string(props, propName, component);
 },