From 214812ba9f23a09adefee42d84fd7ba36fd586e3 Mon Sep 17 00:00:00 2001 From: Patrick Wehbe Date: Sat, 20 Jun 2026 14:50:07 +0300 Subject: [PATCH] fix(ios): correct Flow prop type to disabled The iOS picker component reads a `disabled` prop (datetimepicker.ios.js destructures `disabled` and passes `enabled={disabled !== true}` to the native view), but the Flow IOSNativeProps type declared `enabled` instead. The TypeScript types in index.d.ts already declare `disabled`, so the Flow type was the only place out of sync. Rename the field to `disabled` so the Flow types match the component and the TS types. --- src/types.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.js b/src/types.js index 81847c04..98af06c3 100644 --- a/src/types.js +++ b/src/types.js @@ -178,9 +178,9 @@ export type IOSNativeProps = $ReadOnly<{| display?: IOSDisplay, /** - * Is this picker enabled? + * Is this picker disabled? */ - enabled?: boolean, + disabled?: boolean, |}>; export type ButtonType = {label?: string, textColor?: ColorValue};