|
3 | 3 | Button,
|
4 | 4 | Image,
|
5 | 5 | Platform,
|
6 |
| - SafeAreaView, |
7 | 6 | ScrollView,
|
8 | 7 | type ScrollViewProps,
|
9 | 8 | StyleSheet,
|
@@ -50,98 +49,95 @@ export function Article({
|
50 | 49 |
|
51 | 50 | console.log(Platform.OS, ' Rendering Article');
|
52 | 51 | return (
|
53 |
| - <SafeAreaView> |
54 |
| - <ScrollView |
55 |
| - ref={ref} |
56 |
| - style={{ backgroundColor: '#fff' }} |
57 |
| - contentContainerStyle={styles.content} |
58 |
| - {...rest} |
59 |
| - > |
60 |
| - <View style={styles.author}> |
61 |
| - <Image |
62 |
| - style={styles.avatar} |
63 |
| - source={require('../../assets/avatar-1.png')} |
64 |
| - /> |
65 |
| - <View style={styles.meta}> |
66 |
| - <Text style={[styles.name, { color: '#000' }]}>{author.name}</Text> |
67 |
| - <Text style={[styles.timestamp, { color: '#000' }]}>{date}</Text> |
68 |
| - </View> |
69 |
| - </View> |
70 |
| - <Button |
71 |
| - title="Go to Albums" |
72 |
| - onPress={() => { |
73 |
| - jumpTo?.('albums'); |
74 |
| - }} |
75 |
| - /> |
76 |
| - <Heading>What is Lorem Ipsum?</Heading> |
77 |
| - <Paragraph> |
78 |
| - Lorem Ipsum is simply dummy text of the printing and typesetting |
79 |
| - industry. Lorem Ipsum has been the industry's standard dummy text |
80 |
| - ever since the 1500s, when an unknown printer took a galley of type |
81 |
| - and scrambled it to make a type specimen book. It has survived not |
82 |
| - only five centuries, but also the leap into electronic typesetting, |
83 |
| - remaining essentially unchanged. It was popularised in the 1960s with |
84 |
| - the release of Letraset sheets containing Lorem Ipsum passages, and |
85 |
| - more recently with desktop publishing software like Aldus PageMaker |
86 |
| - including versions of Lorem Ipsum. |
87 |
| - </Paragraph> |
| 52 | + <ScrollView |
| 53 | + ref={ref} |
| 54 | + style={{ backgroundColor: '#fff' }} |
| 55 | + contentContainerStyle={styles.content} |
| 56 | + {...rest} |
| 57 | + > |
| 58 | + <View style={styles.author}> |
88 | 59 | <Image
|
89 |
| - style={styles.image} |
90 |
| - resizeMode="cover" |
91 |
| - source={require('../../assets/book.jpg')} |
| 60 | + style={styles.avatar} |
| 61 | + source={require('../../assets/avatar-1.png')} |
92 | 62 | />
|
93 |
| - <Heading>Where does it come from?</Heading> |
94 |
| - <Paragraph> |
95 |
| - Contrary to popular belief, Lorem Ipsum is not simply random text. It |
96 |
| - has roots in a piece of classical Latin literature from 45 BC, making |
97 |
| - it over 2000 years old. Richard McClintock, a Latin professor at |
98 |
| - Hampden-Sydney College in Virginia, looked up one of the more obscure |
99 |
| - Latin words, consectetur, from a Lorem Ipsum passage, and going |
100 |
| - through the cites of the word in classical literature, discovered the |
101 |
| - undoubtable source. Lorem Ipsum comes from sections 1.10.32 and |
102 |
| - 1.10.33 of "de Finibus Bonorum et Malorum" (The Extremes of |
103 |
| - Good and Evil) by Cicero, written in 45 BC. This book is a treatise on |
104 |
| - the theory of ethics, very popular during the Renaissance. The first |
105 |
| - line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes |
106 |
| - from a line in section 1.10.32. |
107 |
| - </Paragraph> |
108 |
| - <Paragraph> |
109 |
| - The standard chunk of Lorem Ipsum used since the 1500s is reproduced |
110 |
| - below for those interested. Sections 1.10.32 and 1.10.33 from "de |
111 |
| - Finibus Bonorum et Malorum" by Cicero are also reproduced in |
112 |
| - their exact original form, accompanied by English versions from the |
113 |
| - 1914 translation by H. Rackham. |
114 |
| - </Paragraph> |
115 |
| - <Heading>Why do we use it?</Heading> |
116 |
| - <Paragraph> |
117 |
| - It is a long established fact that a reader will be distracted by the |
118 |
| - readable content of a page when looking at its layout. The point of |
119 |
| - using Lorem Ipsum is that it has a more-or-less normal distribution of |
120 |
| - letters, as opposed to using "Content here, content here", |
121 |
| - making it look like readable English. Many desktop publishing packages |
122 |
| - and web page editors now use Lorem Ipsum as their default model text, |
123 |
| - and a search for "lorem ipsum" will uncover many web sites |
124 |
| - still in their infancy. Various versions have evolved over the years, |
125 |
| - sometimes by accident, sometimes on purpose (injected humour and the |
126 |
| - like). |
127 |
| - </Paragraph> |
128 |
| - <Heading>Where can I get some?</Heading> |
129 |
| - <Paragraph> |
130 |
| - There are many variations of passages of Lorem Ipsum available, but |
131 |
| - the majority have suffered alteration in some form, by injected |
132 |
| - humour, or randomised words which don't look even slightly |
133 |
| - believable. If you are going to use a passage of Lorem Ipsum, you need |
134 |
| - to be sure there isn't anything embarrassing hidden in the middle |
135 |
| - of text. All the Lorem Ipsum generators on the Internet tend to repeat |
136 |
| - predefined chunks as necessary, making this the first true generator |
137 |
| - on the Internet. It uses a dictionary of over 200 Latin words, |
138 |
| - combined with a handful of model sentence structures, to generate |
139 |
| - Lorem Ipsum which looks reasonable. The generated Lorem Ipsum is |
140 |
| - therefore always free from repetition, injected humour, or |
141 |
| - non-characteristic words etc. |
142 |
| - </Paragraph> |
143 |
| - </ScrollView> |
144 |
| - </SafeAreaView> |
| 63 | + <View style={styles.meta}> |
| 64 | + <Text style={[styles.name, { color: '#000' }]}>{author.name}</Text> |
| 65 | + <Text style={[styles.timestamp, { color: '#000' }]}>{date}</Text> |
| 66 | + </View> |
| 67 | + </View> |
| 68 | + <Button |
| 69 | + title="Go to Albums" |
| 70 | + onPress={() => { |
| 71 | + jumpTo?.('albums'); |
| 72 | + }} |
| 73 | + /> |
| 74 | + <Heading>What is Lorem Ipsum?</Heading> |
| 75 | + <Paragraph> |
| 76 | + Lorem Ipsum is simply dummy text of the printing and typesetting |
| 77 | + industry. Lorem Ipsum has been the industry's standard dummy text |
| 78 | + ever since the 1500s, when an unknown printer took a galley of type and |
| 79 | + scrambled it to make a type specimen book. It has survived not only five |
| 80 | + centuries, but also the leap into electronic typesetting, remaining |
| 81 | + essentially unchanged. It was popularised in the 1960s with the release |
| 82 | + of Letraset sheets containing Lorem Ipsum passages, and more recently |
| 83 | + with desktop publishing software like Aldus PageMaker including versions |
| 84 | + of Lorem Ipsum. |
| 85 | + </Paragraph> |
| 86 | + <Image |
| 87 | + style={styles.image} |
| 88 | + resizeMode="cover" |
| 89 | + source={require('../../assets/book.jpg')} |
| 90 | + /> |
| 91 | + <Heading>Where does it come from?</Heading> |
| 92 | + <Paragraph> |
| 93 | + Contrary to popular belief, Lorem Ipsum is not simply random text. It |
| 94 | + has roots in a piece of classical Latin literature from 45 BC, making it |
| 95 | + over 2000 years old. Richard McClintock, a Latin professor at |
| 96 | + Hampden-Sydney College in Virginia, looked up one of the more obscure |
| 97 | + Latin words, consectetur, from a Lorem Ipsum passage, and going through |
| 98 | + the cites of the word in classical literature, discovered the |
| 99 | + undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 |
| 100 | + of "de Finibus Bonorum et Malorum" (The Extremes of Good and |
| 101 | + Evil) by Cicero, written in 45 BC. This book is a treatise on the theory |
| 102 | + of ethics, very popular during the Renaissance. The first line of Lorem |
| 103 | + Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in |
| 104 | + section 1.10.32. |
| 105 | + </Paragraph> |
| 106 | + <Paragraph> |
| 107 | + The standard chunk of Lorem Ipsum used since the 1500s is reproduced |
| 108 | + below for those interested. Sections 1.10.32 and 1.10.33 from "de |
| 109 | + Finibus Bonorum et Malorum" by Cicero are also reproduced in their |
| 110 | + exact original form, accompanied by English versions from the 1914 |
| 111 | + translation by H. Rackham. |
| 112 | + </Paragraph> |
| 113 | + <Heading>Why do we use it?</Heading> |
| 114 | + <Paragraph> |
| 115 | + It is a long established fact that a reader will be distracted by the |
| 116 | + readable content of a page when looking at its layout. The point of |
| 117 | + using Lorem Ipsum is that it has a more-or-less normal distribution of |
| 118 | + letters, as opposed to using "Content here, content here", |
| 119 | + making it look like readable English. Many desktop publishing packages |
| 120 | + and web page editors now use Lorem Ipsum as their default model text, |
| 121 | + and a search for "lorem ipsum" will uncover many web sites |
| 122 | + still in their infancy. Various versions have evolved over the years, |
| 123 | + sometimes by accident, sometimes on purpose (injected humour and the |
| 124 | + like). |
| 125 | + </Paragraph> |
| 126 | + <Heading>Where can I get some?</Heading> |
| 127 | + <Paragraph> |
| 128 | + There are many variations of passages of Lorem Ipsum available, but the |
| 129 | + majority have suffered alteration in some form, by injected humour, or |
| 130 | + randomised words which don't look even slightly believable. If you |
| 131 | + are going to use a passage of Lorem Ipsum, you need to be sure there |
| 132 | + isn't anything embarrassing hidden in the middle of text. All the |
| 133 | + Lorem Ipsum generators on the Internet tend to repeat predefined chunks |
| 134 | + as necessary, making this the first true generator on the Internet. It |
| 135 | + uses a dictionary of over 200 Latin words, combined with a handful of |
| 136 | + model sentence structures, to generate Lorem Ipsum which looks |
| 137 | + reasonable. The generated Lorem Ipsum is therefore always free from |
| 138 | + repetition, injected humour, or non-characteristic words etc. |
| 139 | + </Paragraph> |
| 140 | + </ScrollView> |
145 | 141 | );
|
146 | 142 | }
|
147 | 143 |
|
|
0 commit comments