/
githubmirror
/
react-native
Обзор
Документация
Войти
/
githubmirror
/
react-native
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
private/helloworld/App.tsx
43 строки
870 B
Tim Yung
RN: Move `{packages => private}/helloworld` (#51934)
12 июн 2025, 03:39
12 июн 2025, 03:39
f0f71ea
Код
Авторство
О чём код?
/** * 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 */ import * as React from 'react'; import { SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, View, useColorScheme, } from 'react-native'; function App(): React.ReactNode { const isDarkMode = useColorScheme() === 'dark'; return ( <SafeAreaView> <StatusBar barStyle={isDarkMode ? 'light-content' : 'dark-content'} /> <ScrollView contentInsetAdjustmentBehavior="automatic"> <View> <Text style={styles.title}>Hello, World!</Text> </View> </ScrollView> </SafeAreaView> ); } const styles = StyleSheet.create({ title: { fontSize: 24, fontWeight: '600', }, }); export default App;