mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
fbcb3d469c
commit
4f47b385fa
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user