/** * 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 strict-local * @format */ 'use strict'; import type {RNTesterModuleExample} from '../../types/RNTesterTypes'; import RNTesterText from '../../components/RNTesterText'; import React from 'react'; import {useState} from 'react'; import { Button, DeviceInfo, Modal, SafeAreaView, StyleSheet, View, } from 'react-native'; function SafeAreaViewExample(): React.Node { const [modalVisible, setModalVisible] = useState(false); const toggleModal = (visible: boolean) => { setModalVisible(visible); }; return ( toggleModal(false)} animationType="slide" supportedOrientations={['portrait', 'landscape']}>