From d674e8536d0c41ad0cf60f1994701ec986cb13b1 Mon Sep 17 00:00:00 2001 From: Alies Lapatsin <150333538+lptn@users.noreply.github.com> Date: Wed, 9 Sep 2026 13:13:42 +0200 Subject: [PATCH] fix(ios): discard stale deferred picker selections --- example/src/PickerIOSExample.tsx | 32 ++++++++++++++++++++- ios/RNCPicker.mm | 49 ++++++++++++++++++++++++++++++-- 2 files changed, 77 insertions(+), 4 deletions(-) diff --git a/example/src/PickerIOSExample.tsx b/example/src/PickerIOSExample.tsx index 842d4a048..25b2ef2c3 100644 --- a/example/src/PickerIOSExample.tsx +++ b/example/src/PickerIOSExample.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import {Text, StyleSheet, View} from 'react-native'; +import {Button, Text, StyleSheet, View} from 'react-native'; import {PickerIOS} from '@react-native-picker/picker'; const CAR_MAKES_AND_MODELS = { @@ -127,6 +127,32 @@ function PickerExample() { ); } +function ControlledPickerRapidUpdatesExample() { + const [value, setValue] = React.useState('first'); + + return ( + + Rapidly alternate the two buttons while the wheel is moving. +