.ENV file test

This commit is contained in:
Gergely Hegedus 2023-09-28 16:25:15 +03:00
parent 29d421e4c6
commit df4dbfa09b
6 changed files with 52 additions and 3 deletions

View file

@ -14,6 +14,7 @@ import {
useColorScheme,
} from 'react-native';
import {Colors} from './src/colors';
import {MY_ENV_VAR} from '@env';
function App(): JSX.Element {
const isDarkMode = useColorScheme() === 'dark';
@ -32,7 +33,7 @@ function App(): JSX.Element {
backgroundColor={backgroundStyle.backgroundColor}
/>
<ScrollView contentInsetAdjustmentBehavior="automatic">
<Text style={textStyle}>{'hello world'}</Text>
<Text style={textStyle}>{`hello world ${MY_ENV_VAR}`}</Text>
</ScrollView>
</SafeAreaView>
);