Skip to content

Commit

Permalink
Merge pull request #55 from react-native-community/orta-patch-1
Browse files Browse the repository at this point in the history
Update App.tsx to correspond to def typed updates
  • Loading branch information
emin93 authored Aug 12, 2019
2 parents 98c6517 + 94c1756 commit eae5bed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* https://github.com/facebook/react-native
*
* Generated with the TypeScript template
* https://github.com/emin93/react-native-template-typescript
* https://github.com/react-native-community/react-native-template-typescript
*
* @format
*/
Expand All @@ -27,6 +27,8 @@ import {
} from 'react-native/Libraries/NewAppScreen';

const App = () => {
const usingHermes = typeof HermesInternal === 'object' && HermesInternal !== null;

return (
<Fragment>
<StatusBar barStyle="dark-content" />
Expand All @@ -35,7 +37,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>
Expand Down Expand Up @@ -113,4 +115,4 @@ const styles = StyleSheet.create({
},
});

export default App;
export default App;

0 comments on commit eae5bed

Please sign in to comment.