Skip to content

Commit

Permalink
using correct flow type
Browse files Browse the repository at this point in the history
  • Loading branch information
fabOnReact committed Nov 28, 2022
1 parent fd152d2 commit bf37a34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/rn-tester/js/examples/Modal/ModalPresentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function ModalPresentation() {
React.useState('Portrait');
const [currentOrientation, setCurrentOrientation] = React.useState('unknown');
const [action, setAction] = React.useState('None');
let ref = React.useRef<?React.ElementRef<typeof Text>>(null);
let ref = React.useRef<?React.ElementRef<typeof TitleComponent>>(null);
const actions = Platform.OS === 'ios' ? iOSActions : noniOSActions;
const onDismiss = () => {
setVisible(false);
Expand All @@ -88,7 +88,6 @@ function ModalPresentation() {
if (ref != null && ref.current != null && visible === true) {
// see https://github.com/facebook/react-native/issues/30097#issuecomment-1285927266
const focusEvent = Platform.OS === 'ios' ? 'focus' : 'viewHoverEnter';
// $FlowFixMe
AccessibilityInfo.sendAccessibilityEvent(ref.current, focusEvent);
}
};
Expand Down

0 comments on commit bf37a34

Please sign in to comment.