mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
38cb06cbd3
Summary: This is a starting point for the handwritten Fabric Picker component. It is incomplete, and needs to be landed with the rest of the stack above it. In general, this creates a new `ComponentView`, `ComponentDescriptor`, `ShadowNode`, `Props` and a few other boilerplate classes for Picker. A bunch of the logic in `ComponentView` was copied over from the Paper `RCTPicker` and `RCTPickerManager`. What works in this diff: - A `<Picker>` with items can be created in JS, and a corresponding `UIPicker` is created in native with placeholder text, default styling and the correct amount of items What doesn't work yet (implemented in later diffs): - Parsing items to use correct text and styling in native - Events/commands Reviewed By: sammy-SC Differential Revision: D23941821 fbshipit-source-id: e049ca6004757fbd1361985644d5dbb8f53e1ce6