react-native-macos/Libraries/Components
David 5dd2f2e4b7 fix: Update incorrect `SwitchChangeEvent` type (#34931)
Summary:
I noticed that typescript type for `onChange`  event of `<Switch/>` was incorrect

```tsx
<Switch
  onChange={(event) => {
    // TS
    event.value; // boolean
    event.nativeEvent.value; //TS2339: Property 'value' does not exist on type 'Event'.
    // JS
    console.log(event.nativeEvent); // {value:false,target:87}
    console.log(event.value); // undefined
  }}
/>
```

## Changelog

[General] [Changed] - Typescript: update incorrect `SwitchChangeEvent` type

Pull Request resolved: https://github.com/facebook/react-native/pull/34931

Test Plan: ...

Reviewed By: lunaleaps

Differential Revision: D40240552

Pulled By: skinsshark

fbshipit-source-id: 4d39d547778de4ac4dc6c94471f05bfbe157d0e5
2022-10-12 13:05:35 -07:00
..
AccessibilityInfo RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ActivityIndicator RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Clipboard RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
DatePicker RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
DatePickerAndroid RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
DrawerAndroid RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Keyboard RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Pressable RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ProgressBarAndroid RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ProgressViewIOS RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
RefreshControl RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
SafeAreaView RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
ScrollView Fix ScrollView blurring TextInput when changing focus between inputs 2022-10-07 07:20:33 -07:00
Slider RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Sound RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
StatusBar RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Switch fix: Update incorrect `SwitchChangeEvent` type (#34931) 2022-10-12 13:05:35 -07:00
TextInput feat : add aria labelled as alias for accessibilityLabelledBy (#34725) 2022-10-11 05:48:42 -07:00
ToastAndroid RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Touchable Sync new changes in @types/react-native (TextProps, TouchableWithoutFeedbackProps) (#34794) 2022-10-03 08:01:20 -07:00
UnimplementedViews RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
View Add aria-labelledby to types 2022-10-11 11:12:49 -07:00
__tests__ RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Button.d.ts Place TypeScript Declarations Alongside Source Files 2022-09-26 12:09:45 -07:00
Button.flow.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
Button.js RN: Sort Imports via ESLint 2022-09-30 14:28:48 -07:00
StaticRenderer.js Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00