@amabeth/repeating-wheel-picker
v1.2.1
Published
A React Native wheel picker that allows endless scrolling through repeating content
Downloads
16
Maintainers
Readme
Readme
A React Native wheel picker that allows endless scrolling through repeating content. Supports custom types for picker data.
Installation
npm install @amabeth/repeating-wheel-pickerUsage
import RepeatingWheelPicker, {
type RepeatingWheelPickerProps,
} from "@amabeth/repeating-wheel-picker";
// ...
const [, setSelected] = useState<string>();
return (
<RepeatingWheelPicker<string>
setSelected={setSelected}
initialIndex={0}
data={["first", "second", "third"]}
/>
);Example


Contributing
Contributions are currently not intended.
