Closed
Description
This task captures the work to reach parity between Paper and Fabric for the native code for the <Switch>
component.
ComponentView
- Create the SwitchComponentView (SwCV)
- Register the ComponentView in the ComponentViewRegistry
Implemented in #11204
APIs
See latest spec at https://reactnative.dev/docs/switch.
Switch Props
7/7
API | Platform | RNW Paper | RNW Fabric | Notes |
---|---|---|---|---|
|
SwVM | SwCV | Fabric:#11204 | |
|
iOS | No | No? | |
|
SwVM | SwCV | Fabric:#11204 | |
|
JS | JS | ||
|
SwVM | SwCV | Fabric:#11204 | |
SwVM | SwCV | Fabric:#11234 | ||
|
SwVM | SwCV | Fabric:#11204 |
Switch Methods
1/1
API | Platform | RNW Paper | RNW Fabric | Notes |
---|---|---|---|---|
|
SwVM | SwCV | Not exposed to the user, but used by the JS to sync JS state with UI state, Fabric:#11204 |
View Props
51/60
API | Platform | RNW Paper | RNW Fabric | Notes |
---|---|---|---|---|
|
FEVM | Pri 2 | ||
|
iOS | No | No? | |
|
FEVM | CBCV+CDAP | Fabric: #12036 | |
|
iOS | No | No? | |
|
FEVM | CBCV+CDAP | Fabric: #11674 | |
|
iOS | No | No? | |
|
Android | FEVM | Pri 2 | |
|
FEVM | CDAP | Fabric: #11412 | |
|
FEVM | CBCV+CDAP | Fabric: Partial impl in #11674 | |
|
FEVM | CBCV+CDAP | Fabric: #12287 | |
|
iOS | No | No? | |
|
CVM+FEVM | CBCV+CDAP | Fabric: #11719 | |
|
Android | No | No? | |
|
Android | CVM | Pri 1 | |
|
JS | JS | ||
|
Android | No | No? | |
|
No | No? | ||
|
No | No? | ||
|
Android | No | No? | |
|
Android | No | No? | |
|
Android | No | No? | |
|
Android | No | No? | |
|
Android | No | No? | |
|
VMB | Pri 2 | ||
|
iOS | No | No? | |
|
No | CDAP | Fabric: #11874 | |
|
VMB | Pri 1 | ||
|
iOS | No | No? | |
|
JS | JS | ||
|
JS | JS | ||
|
JS | JS | ||
|
JS | JS | ||
|
JS | JS | ||
|
JS | JS | ||
|
JS | JS | ||
|
JS | JS | ||
|
JS | JS | ||
|
JS | JS | ||
|
VMB | SwCV | Fabric:#11204 | |
|
No | No? | ||
|
Android | No | No? | |
|
iOS | No | No? | |
|
See Below | See Below | Supports View Style Props, Layout Props, Shadow Props | |
|
FEVM | CDAP | Fabric: #11412 | |
|
Windows | FEVM | Pri 2 | |
|
Windows | FEVM | Pri 2 | |
|
Windows | JS | CBCV+SwCV | Fabric: #11323, Focus ring impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics |
|
Windows | VMB | SwCV+CBCV | Fabric: #12146 |
|
Windows | VMB | SwCV+CBCV | Fabric: #12146 |
|
Windows | VMB | CBCV | Paper: Event is registered, but maybe never fired?, Fabric: #11279 |
|
Windows | VMB | CBCV | Paper: Event is registered, but maybe never fired?, Fabric: #11279 |
|
Windows | VMB | SwCV+CBCV+CEH | Fabric: #12146 |
|
Windows | VMB | Pri 1 | |
|
Windows | VMB | SwCV+CBCV+CEH | Fabric: #12146 |
|
Windows | VMB | Pri 1 | |
|
Windows | VMB | CEH | |
|
Windows | VMB | CEH | |
|
Windows | CVM | Pri 1 | |
|
Windows | FEVM | Pri 1 |
View Style Props
29/30
API | Platform | RNW Paper | RNW Fabric | Notes |
---|---|---|---|---|
|
No | CBCV+PCV | Fabric: #12115 Impl in CBCV and CV must call updateTransformProps | |
|
CVM | SwCV | Fabric:#11204 | |
|
No | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
No | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
No | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
No | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
No | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
No | CBCV | Fabric: Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | ||
|
No | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM | CBCV+SwCV | Fabric:#11204, Border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
Android | No | No? | |
|
FEVM | Pri 1 | ||
|
FEVM | CBCV+SwCV | Fabric: #12115 Impl in CBCV and CV must call updateTransformProps |
Layout Props
52/53
API | Platform | RNW Paper | RNW Fabric | Notes |
---|---|---|---|---|
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics, but border impl in CBCV and CV must call updateBorderProps / updateBorderLayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
FEVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
FEVM+NUIM | SwCV | Fabric:#11204 | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
VMB+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
VMB+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | Pri 1 | ||
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
CVM+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
VMB+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
VMB+NUIM | CBCV+SwCV | Fabric:#11204, RN Core resolves LayoutMetrics | |
|
FEVM | Pri 1 |
Shadow Props
4/4
API | Platform | RNW Paper | RNW Fabric | Notes |
---|---|---|---|---|
|
No | CBCV+SwCV | Fabric: #12108, Shadow props impl in CBCV and CV must call updateShadowProps | |
|
iOS | No | CBCV+SwCV | Fabric: #12108, Shadow props impl in CBCV and CV must call updateShadowProps |
|
iOS | No | CBCV+SwCV | Fabric: #12108, Shadow props impl in CBCV and CV must call updateShadowProps |
|
iOS | No | CBCV+SwCV | Fabric: #12108, Shadow props impl in CBCV and CV must call updateShadowProps |
Native Component Methods
2/2
API | Platform | RNW Paper | RNW Fabric | Notes |
---|---|---|---|---|
|
VMB | CBCV | Fabric: #11323 | |
|
VMB | CBCV | Fabric: #11323 |
Glossary
See the Glossary to decode the abbreviations above and/or the RNW Fabric Inventory.xlsx.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done