/** * Sample React Native App * https://github.com/facebook/react-native * * @format * @flow strict-local */ import React from 'react'; import type {Node} from 'react'; import { SafeAreaView, ScrollView, StatusBar, StyleSheet, Text, useColorScheme, View, } from 'react-native'; import { Colors, DebugInstructions, Header, LearnMoreLinks, ReloadInstructions, } from 'react-native/Libraries/NewAppScreen'; const Section = ({children, title}): Node => { const isDarkMode = useColorScheme() === 'dark'; return ( {title} {children} ); }; const styles = StyleSheet.create({ sectionContainer: { marginTop: 5, paddingHorizontal: 5, }, sectionTitle: { fontSize: 20, fontWeight: '600', }, sectionDescription: { marginTop: 8, fontSize: 18, fontWeight: '400', }, highlight: { fontWeight: '700', }, textLargeStyle: { fontSize: 20, textAlign: 'center', fontFamily: 'DancingScript-Regular', }, }); const App: () => Node = () => { const isDarkMode = useColorScheme() === 'dark'; const backgroundStyle = { backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, }; return (
แก้ไขแฟ้ม App.js เพื่อเปลี่ยนหน้าจอ เมื่อกลับมาดูหน้าจอนี้จะพบการเปลี่ยนแปลงที่ได้แก้ไขไป{"\n"} ฟอนต์ (Font) 1{"\n"} ฟอนต์ (Font) 2{"\n"} ฟอนต์ (Font) 3{"\n"} ฟอนต์ (Font) 4{"\n"} ฟอนต์ (Font) 5{"\n"} ฟอนต์ (Font) 6{"\n"} ฟอนต์ (Font) 7{"\n"} DancingScript-Bold{"\n"} DancingScript-Regular{"\n"}
); }; export default App; /* LearnMoreLinks , DebugInstructions , https://aboutreact.com/custom-fonts-in-react-native/ */