Cleanup all uses of internal flow type React$ElementRef in react-native (#45904)

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

Flow will error on these dollar types soon. For all the ones changed here, they can all be further simplified.

Changelog: [Internal]

Reviewed By: gkz

Differential Revision: D60786768

fbshipit-source-id: e26bf0be1c4a933fc0bd8b59827e10cbd7242a83
This commit is contained in:
Sam Zhou
2024-08-05 14:51:30 -07:00
committed by Facebook GitHub Bot
parent fbcb3d469c
commit 4f47b385fa
7 changed files with 17 additions and 76 deletions
@@ -24,7 +24,7 @@ import {
const Drawer = () => {
const theme = useContext(RNTesterThemeContext);
const drawer = useRef<null | React$ElementRef<any>>(null);
const drawer = useRef<null | any>(null);
const [drawerPosition, setDrawerPosition] = useState('left');
const changeDrawerPosition = () => {
if (drawerPosition === 'left') {