|
| 1 | +// import React, { useEffect } from "react"; |
| 2 | +// import { |
| 3 | +// SafeAreaView, |
| 4 | +// ScrollView, |
| 5 | +// StatusBar, |
| 6 | +// StyleSheet, |
| 7 | +// Text, |
| 8 | +// useColorScheme, |
| 9 | +// View, |
| 10 | +// } from "react-native"; |
| 11 | + |
| 12 | +// import { |
| 13 | +// Colors, |
| 14 | +// DebugInstructions, |
| 15 | +// Header, |
| 16 | +// LearnMoreLinks, |
| 17 | +// ReloadInstructions, |
| 18 | +// } from "react-native/Libraries/NewAppScreen"; |
| 19 | + |
| 20 | +import React, { useEffect } from "react"; |
| 21 | +import RNBootSplash from "react-native-bootsplash"; |
| 22 | +import { AuthStack } from "./src/navigation/AuthStack"; |
| 23 | + |
| 24 | +export default function App() { |
| 25 | + useEffect(() => { |
| 26 | + setInterval(() => { |
| 27 | + RNBootSplash.hide({ fade: true }); |
| 28 | + }, 500); |
| 29 | + }, []); |
| 30 | + return <AuthStack />; |
| 31 | +} |
| 32 | + |
| 33 | +// const Section: React.FC<{ |
| 34 | +// title: string; |
| 35 | +// }> = ({ children, title }) => { |
| 36 | +// const isDarkMode = useColorScheme() === "dark"; |
| 37 | + |
| 38 | +// useEffect(() => { |
| 39 | +// setInterval(() => { |
| 40 | +// RNBootSplash.hide({ fade: true }); |
| 41 | +// }, 1000); |
| 42 | +// }, []); |
| 43 | + |
| 44 | +// return ( |
| 45 | +// <View style={styles.sectionContainer}> |
| 46 | +// <Text |
| 47 | +// style={[ |
| 48 | +// styles.sectionTitle, |
| 49 | +// { |
| 50 | +// color: isDarkMode ? Colors.white : Colors.black, |
| 51 | +// }, |
| 52 | +// ]} |
| 53 | +// > |
| 54 | +// {title} |
| 55 | +// </Text> |
| 56 | +// <Text |
| 57 | +// style={[ |
| 58 | +// styles.sectionDescription, |
| 59 | +// { |
| 60 | +// color: isDarkMode ? Colors.light : Colors.dark, |
| 61 | +// }, |
| 62 | +// ]} |
| 63 | +// > |
| 64 | +// {children} |
| 65 | +// </Text> |
| 66 | +// </View> |
| 67 | +// ); |
| 68 | +// }; |
| 69 | + |
| 70 | +// const App = () => { |
| 71 | +// const isDarkMode = useColorScheme() === "dark"; |
| 72 | + |
| 73 | +// const backgroundStyle = { |
| 74 | +// backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, |
| 75 | +// }; |
| 76 | + |
| 77 | +// return ( |
| 78 | +// <SafeAreaView style={backgroundStyle}> |
| 79 | +// <StatusBar barStyle={isDarkMode ? "light-content" : "dark-content"} /> |
| 80 | +// <ScrollView |
| 81 | +// contentInsetAdjustmentBehavior="automatic" |
| 82 | +// style={backgroundStyle} |
| 83 | +// > |
| 84 | +// <Header /> |
| 85 | +// <View |
| 86 | +// style={{ |
| 87 | +// backgroundColor: isDarkMode ? Colors.black : Colors.white, |
| 88 | +// }} |
| 89 | +// > |
| 90 | +// <Section title="Aviate Coders"> |
| 91 | +// Edit <Text style={styles.highlight}>App.js</Text> to change this |
| 92 | +// screen and then come back to see your edits. |
| 93 | +// </Section> |
| 94 | +// <Section title="See Your Changes"> |
| 95 | +// <ReloadInstructions /> |
| 96 | +// </Section> |
| 97 | +// <Section title="Debug"> |
| 98 | +// <DebugInstructions /> |
| 99 | +// </Section> |
| 100 | +// <Section title="Learn More"> |
| 101 | +// Read the docs to discover what to do next: |
| 102 | +// </Section> |
| 103 | +// <LearnMoreLinks /> |
| 104 | +// </View> |
| 105 | +// </ScrollView> |
| 106 | +// </SafeAreaView> |
| 107 | +// ); |
| 108 | +// }; |
| 109 | + |
| 110 | +// const styles = StyleSheet.create({ |
| 111 | +// sectionContainer: { |
| 112 | +// marginTop: 32, |
| 113 | +// paddingHorizontal: 24, |
| 114 | +// }, |
| 115 | +// sectionTitle: { |
| 116 | +// fontSize: 24, |
| 117 | +// fontWeight: "600", |
| 118 | +// }, |
| 119 | +// sectionDescription: { |
| 120 | +// marginTop: 8, |
| 121 | +// fontSize: 18, |
| 122 | +// fontWeight: "400", |
| 123 | +// }, |
| 124 | +// highlight: { |
| 125 | +// fontWeight: "700", |
| 126 | +// }, |
| 127 | +// }); |
| 128 | + |
| 129 | +// export default App; |
0 commit comments