|
1 |
| -// /** |
2 |
| -// * Sample React Native App |
3 |
| -// * https://github.com/facebook/react-native |
4 |
| -// * |
5 |
| -// * @format |
6 |
| -// */ |
7 |
| - |
8 |
| -// import React from 'react'; |
9 |
| -// import type {PropsWithChildren} from 'react'; |
10 |
| -// import { |
11 |
| -// SafeAreaView, |
12 |
| -// ScrollView, |
13 |
| -// StatusBar, |
14 |
| -// StyleSheet, |
15 |
| -// Text, |
16 |
| -// useColorScheme, |
17 |
| -// View, |
18 |
| -// } from 'react-native'; |
19 |
| - |
20 |
| -// import { |
21 |
| -// Colors, |
22 |
| -// DebugInstructions, |
23 |
| -// Header, |
24 |
| -// LearnMoreLinks, |
25 |
| -// ReloadInstructions, |
26 |
| -// } from 'react-native/Libraries/NewAppScreen'; |
27 |
| - |
28 |
| -// type SectionProps = PropsWithChildren<{ |
29 |
| -// title: string; |
30 |
| -// }>; |
31 |
| - |
32 |
| -// function Section({children, title}: SectionProps): JSX.Element { |
33 |
| -// const isDarkMode = useColorScheme() === 'dark'; |
34 |
| -// return ( |
35 |
| -// <View style={styles.sectionContainer}> |
36 |
| -// <Text>Hiiidfgdfg</Text> |
37 |
| -// </View> |
38 |
| -// ); |
39 |
| -// } |
40 |
| - |
41 |
| -// function App(): JSX.Element { |
42 |
| -// const isDarkMode = useColorScheme() === 'dark'; |
43 |
| - |
44 |
| -// const backgroundStyle = { |
45 |
| -// backgroundColor: isDarkMode ? Colors.darker : Colors.lighter, |
46 |
| -// }; |
47 |
| - |
48 |
| -// return ( |
49 |
| -// <SafeAreaView style={backgroundStyle}> |
50 |
| -// <StatusBar |
51 |
| -// barStyle={isDarkMode ? 'light-content' : 'dark-content'} |
52 |
| -// backgroundColor={backgroundStyle.backgroundColor} |
53 |
| -// /> |
54 |
| -// <ScrollView |
55 |
| -// contentInsetAdjustmentBehavior="automatic" |
56 |
| -// style={backgroundStyle}> |
57 |
| -// <Header /> |
58 |
| -// <View |
59 |
| -// style={{ |
60 |
| -// backgroundColor: isDarkMode ? Colors.black : Colors.white, |
61 |
| -// }}> |
62 |
| -// <Section title="Step One"> |
63 |
| -// Edit <Text style={styles.highlight}>App.tsx</Text> to change this |
64 |
| -// screen and then come back to see your edits. |
65 |
| -// </Section> |
66 |
| -// <Section title="See Your Changes"> |
67 |
| -// <ReloadInstructions /> |
68 |
| -// </Section> |
69 |
| -// <Section title="Debug"> |
70 |
| -// <DebugInstructions /> |
71 |
| -// </Section> |
72 |
| -// <Section title="Learn More"> |
73 |
| -// Read the docs to discover what to do next: |
74 |
| -// </Section> |
75 |
| -// <LearnMoreLinks /> |
76 |
| -// </View> |
77 |
| -// </ScrollView> |
78 |
| -// </SafeAreaView> |
79 |
| -// ); |
80 |
| -// } |
81 |
| - |
82 |
| -// const styles = StyleSheet.create({ |
83 |
| -// sectionContainer: { |
84 |
| -// marginTop: 32, |
85 |
| -// paddingHorizontal: 24, |
86 |
| -// }, |
87 |
| -// sectionTitle: { |
88 |
| -// fontSize: 24, |
89 |
| -// fontWeight: '600', |
90 |
| -// }, |
91 |
| -// sectionDescription: { |
92 |
| -// marginTop: 8, |
93 |
| -// fontSize: 18, |
94 |
| -// fontWeight: '400', |
95 |
| -// }, |
96 |
| -// highlight: { |
97 |
| -// fontWeight: '700', |
98 |
| -// }, |
99 |
| -// }); |
100 |
| - |
101 |
| -// export default App; |
102 |
| - |
103 |
| - |
104 |
| -import { View, Text } from 'react-native' |
| 1 | +import { View, Text, SectionList } from 'react-native' |
105 | 2 | import React, { useEffect } from 'react'
|
| 3 | +import FirstComp from './components/FirstComp' |
| 4 | +import ButtonEvent from './components/ButtonEvent' |
| 5 | +import PropsCom1 from './components/PropsCom1' |
| 6 | +import InternalStyle from './components/InternalStyle' |
| 7 | +import ExternalStyle from './components/ExternalStyle' |
| 8 | +import TextInputHandle from './components/TextInputHandle' |
| 9 | +import NativeSimpleForm from './components/NativeSimpleForm' |
| 10 | +import FlatListNative from './components/FlatListNative' |
| 11 | +import DymanicGrid from './components/DymanicGrid' |
| 12 | +import SectionListCom from './components/SectionListCom' |
| 13 | +import ClassBasedComp from './components/ClassBasedComp' |
| 14 | +import LifeCycleUseEffect from './components/LifeCycleUseEffect' |
| 15 | +import FlexArrangementComp from './components/FlexArrangementComp' |
| 16 | +import TouchableHighlightButton from './components/TouchableHighlightButton' |
| 17 | +import RadioButtonComp from './components/RadioButtonComp' |
| 18 | +import DynamicRadioOption from './components/DynamicRadioOption' |
| 19 | +import ActivityIndicatorLoader from './components/ActivityIndicatorLoader' |
| 20 | +import ModalDialogBox from './components/ModalDialogBox' |
106 | 21 |
|
107 | 22 | const App = () => {
|
108 | 23 | useEffect(()=>{
|
109 | 24 | console.log("hello")
|
110 | 25 | },[])
|
111 | 26 | return (
|
112 |
| - <View> |
113 |
| - <Text>THis is First time</Text> |
| 27 | + <View style={{flex:1}}> |
| 28 | + <Text style={{fontSize:30,textAlign:'center', color:"blue",marginTop:10,fontWeight:"bold"}}> |
| 29 | + First React Native Application |
| 30 | + </Text> |
| 31 | + <Text style={{backgroundColor:"black",color:"white",textAlign:"center",margin:3}}> |
| 32 | + Lets Jump into Native World!! |
| 33 | + </Text> |
| 34 | + {/* <FirstComp/> */} |
| 35 | + {/* <ButtonEvent/> */} |
| 36 | + {/* <PropsCom1/> */} |
| 37 | + {/* <InternalStyle/> */} |
| 38 | + {/* <ExternalStyle/> */} |
| 39 | + {/* <TextInputHandle/> */} |
| 40 | + {/* <NativeSimpleForm/> */} |
| 41 | + {/* <FlatListNative/> */} |
| 42 | + {/* <DymanicGrid/> */} |
| 43 | + {/* <SectionListCom/> */} |
| 44 | + {/* <ClassBasedComp/> */} |
| 45 | + {/* <LifeCycleUseEffect/> */} |
| 46 | + {/* <FlexArrangementComp/> */} |
| 47 | + {/* <TouchableHighlightButton/> */} |
| 48 | + {/* <RadioButtonComp/> */} |
| 49 | + {/* <DynamicRadioOption/> */} |
| 50 | + {/* <ActivityIndicatorLoader/> */} |
| 51 | + <ModalDialogBox/> |
114 | 52 | </View>
|
115 | 53 | )
|
116 | 54 | }
|
|
0 commit comments