diff --git a/App.tsx b/App.tsx index 40287577..06924169 100644 --- a/App.tsx +++ b/App.tsx @@ -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 */ @@ -27,6 +27,8 @@ import { } from 'react-native/Libraries/NewAppScreen'; const App = () => { + const usingHermes = typeof HermesInternal === 'object' && HermesInternal !== null; + return ( @@ -35,7 +37,7 @@ const App = () => { contentInsetAdjustmentBehavior="automatic" style={styles.scrollView}>
- {global.HermesInternal == null ? null : ( + {!usingHermes ? null : ( Engine: Hermes @@ -113,4 +115,4 @@ const styles = StyleSheet.create({ }, }); -export default App; \ No newline at end of file +export default App;