File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
* https://github.com/facebook/react-native
4
4
*
5
5
* Generated with the TypeScript template
6
- * https://github.com/emin93 /react-native-template-typescript
6
+ * https://github.com/react-native-community /react-native-template-typescript
7
7
*
8
8
* @format
9
9
*/
@@ -27,6 +27,8 @@ import {
27
27
} from 'react-native/Libraries/NewAppScreen' ;
28
28
29
29
const App = ( ) => {
30
+ const usingHermes = typeof HermesInternal === 'object' && HermesInternal !== null ;
31
+
30
32
return (
31
33
< Fragment >
32
34
< StatusBar barStyle = "dark-content" />
@@ -35,7 +37,7 @@ const App = () => {
35
37
contentInsetAdjustmentBehavior = "automatic"
36
38
style = { styles . scrollView } >
37
39
< Header />
38
- { global . HermesInternal == null ? null : (
40
+ { ! usingHermes ? null : (
39
41
< View style = { styles . engine } >
40
42
< Text style = { styles . footer } > Engine: Hermes</ Text >
41
43
</ View >
@@ -113,4 +115,4 @@ const styles = StyleSheet.create({
113
115
} ,
114
116
} ) ;
115
117
116
- export default App ;
118
+ export default App ;
You can’t perform that action at this time.
0 commit comments