Skip to content

Commit ad6e370

Browse files
Fix lint
1 parent 0535856 commit ad6e370

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/react-native/Libraries/Components/View/View.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,14 @@ component View(
157157
text: ariaValueText ?? accessibilityValue?.text,
158158
};
159159
}
160+
// [macOS
161+
if(otherProps.onKeyDown){
162+
processedProps.onKeyDown = _onKeyDown;
163+
}
164+
if(otherProps.onKeyUp){
165+
processedProps.onKeyUp = _onKeyUp;
166+
}
167+
// macOS]
160168

161169
const actualView =
162170
ref == null ? (

packages/rn-tester/js/examples/Cursor/CursorExample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* @format
99
*/
1010

11-
import type {CursorValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
1211
import type {RNTesterModuleExample} from '../../types/RNTesterTypes';
12+
import type {CursorValue} from 'react-native/Libraries/StyleSheet/StyleSheetTypes';
1313

1414
import * as React from 'react';
1515
import {StyleSheet, Text, View} from 'react-native';

0 commit comments

Comments
 (0)