File tree Expand file tree Collapse file tree 6 files changed +12
-8
lines changed Expand file tree Collapse file tree 6 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -276,7 +276,7 @@ class Alert {
276
276
static promptMacOS (
277
277
title : ?string ,
278
278
message ?: ?string ,
279
- callbackOrButtons ?: ?( ( text : string ) => void ) | Buttons ,
279
+ callbackOrButtons ?: ?( ( text : string ) => void ) | AlertButtons ,
280
280
type ?: ?AlertType = 'plain-text' ,
281
281
defaultInputs ?: DefaultInputsArray ,
282
282
modal ?: ?boolean ,
Original file line number Diff line number Diff line change @@ -98,15 +98,15 @@ export type TextInputEditingEvent =
98
98
NativeSyntheticEvent < TextInputEndEditingEventData > ;
99
99
100
100
// [macOS macOS-only
101
- export type SettingChangeEvent = SyntheticEvent <
101
+ export type SettingChangeEvent = NativeSyntheticEvent <
102
102
$ReadOnly < { |
103
103
autoCorrectEnabled : boolean ,
104
104
spellCheckEnabled : boolean ,
105
105
grammarCheckEnabled : boolean ,
106
106
| } > ,
107
107
> ;
108
108
109
- export type PasteEvent = SyntheticEvent <
109
+ export type PasteEvent = NativeSyntheticEvent <
110
110
$ReadOnly < { |
111
111
dataTransfer : { |
112
112
files : $ReadOnlyArray < { |
Original file line number Diff line number Diff line change @@ -133,15 +133,15 @@ export type TextInputEditingEvent =
133
133
NativeSyntheticEvent < TextInputEndEditingEventData > ;
134
134
135
135
// [macOS macOS-only
136
- export type SettingChangeEvent = SyntheticEvent <
136
+ export type SettingChangeEvent = NativeSyntheticEvent <
137
137
$ReadOnly < { |
138
138
autoCorrectEnabled : boolean ,
139
139
spellCheckEnabled : boolean ,
140
140
grammarCheckEnabled : boolean ,
141
141
| } > ,
142
142
> ;
143
143
144
- export type PasteEvent = SyntheticEvent <
144
+ export type PasteEvent = NativeSyntheticEvent <
145
145
$ReadOnly < { |
146
146
dataTransfer : { |
147
147
files : $ReadOnlyArray < { |
@@ -943,7 +943,7 @@ export type TextInputProps = $ReadOnly<{
943
943
/**
944
944
* Callback that is called when the text input is focused.
945
945
*/
946
- onFocus ?: ?( e : TextInputFocusEvent ) => void , // [macOS]
946
+ onFocus ?: ?( e : TextInputFocusEvent ) => void , // [macOS]
947
947
948
948
/**
949
949
* Callback that is called when a key is pressed.
Original file line number Diff line number Diff line change @@ -284,7 +284,7 @@ export type NativeScrollPoint = $ReadOnly<{
284
284
} > ;
285
285
286
286
// [macOS
287
- export type KeyEvent = SyntheticEvent <
287
+ export type KeyEvent = NativeSyntheticEvent <
288
288
$ReadOnly < { |
289
289
// Modifier keys
290
290
capsLockKey : boolean ,
Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ export {default as Vibration} from './Libraries/Vibration/Vibration';
104
104
105
105
export {default as DeviceEventEmitter} from './Libraries/EventEmitter/RCTDeviceEventEmitter';
106
106
export {DynamicColorIOS} from './Libraries/StyleSheet/PlatformColorValueTypesIOS';
107
+ export {
108
+ ColorWithSystemEffectMacOS,
109
+ DynamicColorMacOS,
110
+ } from './Libraries/StyleSheet/PlatformColorValueTypesMacOS'; // [macOS]
107
111
export {default as NativeAppEventEmitter} from './Libraries/EventEmitter/RCTNativeAppEventEmitter';
108
112
export {default as NativeModules} from './Libraries/BatchedBridge/NativeModules';
109
113
export {default as Platform} from './Libraries/Utilities/Platform';
Original file line number Diff line number Diff line change @@ -1494,7 +1494,7 @@ class VirtualizedList extends StateSafePureComponent<
1494
1494
_selectRowAtIndex = ( rowIndex : number ) => {
1495
1495
const prevIndex = this . state . selectedRowIndex ;
1496
1496
const newIndex = rowIndex ;
1497
- this . setState ( { selectedRowIndex : newIndex } ) ;
1497
+ this . setState < 'selectedRowIndex' > ( { selectedRowIndex : newIndex } ) ;
1498
1498
1499
1499
this . ensureItemAtIndexIsVisible ( newIndex ) ;
1500
1500
if ( prevIndex !== newIndex ) {
You can’t perform that action at this time.
0 commit comments