Fix issue with global.HermesIternal

Fixes #71
This commit is contained in:
Radek Czemerys authored and GitHub committed 2019-09-26 13:47:29 +02:00
1 parent da00aff48c
commit 7ddce71e49
1 file changed
+2 -1
+2 -1
View File
@@ -27,6 +27,7 @@ import {
} from 'react-native/Libraries/NewAppScreen';
const App = () => {
const usingHermes = typeof HermesInternal === 'object' && HermesInternal !== null;
return (
<>
<StatusBar barStyle="dark-content" />
@@ -35,7 +36,7 @@ const App = () => {
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<Header />
{global.HermesInternal == null ? null : (
{usingHermes ? null : (
<View style={styles.engine}>
<Text style={styles.footer}>Engine: Hermes</Text>
</View>