Skip to content

Commit 93b8ef0

Browse files
authored
Merge pull request #49 from sijad/patch-1
add hermes engine notice
2 parents 56a7a57 + 604fce0 commit 93b8ef0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

App.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ const App = () => {
3535
contentInsetAdjustmentBehavior="automatic"
3636
style={styles.scrollView}>
3737
<Header />
38+
{global.HermesInternal == null ? null : (
39+
<View style={styles.engine}>
40+
<Text style={styles.footer}>Engine: Hermes</Text>
41+
</View>
42+
)}
3843
<View style={styles.body}>
3944
<View style={styles.sectionContainer}>
4045
<Text style={styles.sectionTitle}>Step One</Text>
@@ -73,6 +78,10 @@ const styles = StyleSheet.create({
7378
scrollView: {
7479
backgroundColor: Colors.lighter,
7580
},
81+
engine: {
82+
position: 'absolute',
83+
right: 0,
84+
},
7685
body: {
7786
backgroundColor: Colors.white,
7887
},
@@ -94,6 +103,14 @@ const styles = StyleSheet.create({
94103
highlight: {
95104
fontWeight: '700',
96105
},
106+
footer: {
107+
color: Colors.dark,
108+
fontSize: 12,
109+
fontWeight: '600',
110+
padding: 4,
111+
paddingRight: 12,
112+
textAlign: 'right',
113+
},
97114
});
98115

99116
export default App;

0 commit comments

Comments
 (0)