/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @format * @flow */ 'use strict'; import type {Node} from 'react'; import React, {useRef, useState} from 'react'; import { Button, DrawerLayoutAndroid, StyleSheet, Text, View, } from 'react-native'; const Drawer = () => { const drawer = useRef>(null); const [drawerPosition, setDrawerPosition] = useState('left'); const changeDrawerPosition = () => { if (drawerPosition === 'left') { setDrawerPosition('right'); } else { setDrawerPosition('left'); } }; const navigationView = () => ( I'm in the Drawer!