/
Muip
/
ProBody
Обзор
Документация
Войти
/
Muip
/
ProBody
Код
Запросы
0
Задачи
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
app/modal.tsx
34 строки
764 B
chmerev
new
14 авг 2024, 12:02
14 авг 2024, 12:02
595f266
Код
Авторство
О чём код?
import { StatusBar } from 'expo-status-bar'; import { Platform, StyleSheet } from 'react-native'; import AView from '../components/AView'; import AText from '../components/AText'; export default function ModalScreen() { return ( <AView style={styles.container}> <AText style={styles.title}>Modal</AText> <AView style={styles.separator} /> {/* Use a light status bar on iOS to account for the black space above the modal */} <StatusBar style={Platform.OS === 'ios' ? 'light' : 'auto'} /> </AView> ); } const styles = StyleSheet.create({ container: { flex: 1, alignItems: 'center', justifyContent: 'center', }, title: { fontSize: 20, fontWeight: 'bold', }, separator: { marginVertical: 30, height: 1, width: '80%', }, });