shared.ts 474 B

12345678910111213141516171819202122232425
  1. export type SharedPickerProps = {
  2. title?: string;
  3. loading?: boolean;
  4. itemHeight: number;
  5. showToolbar?: boolean;
  6. visibleItemCount: number;
  7. cancelButtonText?: string;
  8. confirmButtonText?: string;
  9. }
  10. export const pickerProps = {
  11. title: String,
  12. loading: Boolean,
  13. showToolbar: Boolean,
  14. cancelButtonText: String,
  15. confirmButtonText: String,
  16. visibleItemCount: {
  17. type: Number,
  18. default: 5
  19. },
  20. itemHeight: {
  21. type: Number,
  22. default: 44
  23. }
  24. };