From 9c89b82319034bcaafd5e9da47916897edfc074d Mon Sep 17 00:00:00 2001 From: Ely Lucas Date: Sun, 13 Oct 2019 11:58:27 -0600 Subject: [PATCH] fix(react): add IonPicker as controller component, fixes #19620 --- packages/react/src/components/IonPicker.tsx | 5 +++++ packages/react/src/components/index.ts | 1 + packages/react/src/components/proxies.ts | 1 - 3 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 packages/react/src/components/IonPicker.tsx diff --git a/packages/react/src/components/IonPicker.tsx b/packages/react/src/components/IonPicker.tsx new file mode 100644 index 00000000000..03b6f08ad1b --- /dev/null +++ b/packages/react/src/components/IonPicker.tsx @@ -0,0 +1,5 @@ +import { PickerOptions, pickerController } from '@ionic/core'; + +import { createControllerComponent } from './createControllerComponent'; + +export const IonPicker = /*@__PURE__*/createControllerComponent('IonPicker', pickerController); diff --git a/packages/react/src/components/index.ts b/packages/react/src/components/index.ts index b308399a7dc..f2e2952028a 100644 --- a/packages/react/src/components/index.ts +++ b/packages/react/src/components/index.ts @@ -9,6 +9,7 @@ export * from './proxies'; export { IonAlert } from './IonAlert'; export { IonLoading } from './IonLoading'; export { IonToast } from './IonToast'; +export { IonPicker } from './IonPicker'; // createOverlayComponent export { IonActionSheet } from './IonActionSheet'; diff --git a/packages/react/src/components/proxies.ts b/packages/react/src/components/proxies.ts index c2d01c6e1af..685b24a4854 100644 --- a/packages/react/src/components/proxies.ts +++ b/packages/react/src/components/proxies.ts @@ -50,7 +50,6 @@ export const IonMenu = /*@__PURE__*/createReactComponent('ion-menu-button'); export const IonMenuToggle = /*@__PURE__*/createReactComponent('ion-menu-toggle'); export const IonNote = /*@__PURE__*/createReactComponent('ion-note'); -export const IonPicker = /*@__PURE__*/createReactComponent('ion-picker'); export const IonPickerColumn = /*@__PURE__*/createReactComponent('ion-picker-column'); export const IonNav = /*@__PURE__*/createReactComponent('ion-nav'); export const IonProgressBar = /*@__PURE__*/createReactComponent('ion-progress-bar');