Skip to content

react-native tree select ,suport single and multiple,support batch selection

Notifications You must be signed in to change notification settings

jys125773/react-native-tree-select

Repository files navigation

  static propTypes = {
    onSelect: PropTypes.func,
    value: PropTypes.oneOfType([
      PropTypes.arrayOf(PropTypes.shape({
        key: PropTypes.string.isRequired,
        label: PropTypes.string,
      })),
      PropTypes.shape({
        key: PropTypes.string.isRequired,
        label: PropTypes.string,
      })
    ]),
    multiple: PropTypes.bool,
    onlyCheckLeaf: PropTypes.bool,
    treeDefaultExpandedKeys: PropTypes.arrayOf(PropTypes.string),
    treeDefaultExpandAll: PropTypes.bool,
    treeData: PropTypes.arrayOf(PropTypes.shape({
      key: PropTypes.string.isRequired,
      label: PropTypes.string.isRequired,
      disabled: PropTypes.bool,
      children: PropTypes.array,
    })).isRequired
  }

About

react-native tree select ,suport single and multiple,support batch selection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published