Skip to content

Commit

Permalink
✨ End Class 04
Browse files Browse the repository at this point in the history
  • Loading branch information
mluizvitor committed May 6, 2022
1 parent 933ce50 commit 22cda4b
Show file tree
Hide file tree
Showing 25 changed files with 22,593 additions and 5,553 deletions.
34 changes: 28 additions & 6 deletions App.tsx
Original file line number Diff line number Diff line change
@@ -1,20 +1,42 @@
import React from 'react';
import 'react-native-gesture-handler';

import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { StyleSheet, View } from 'react-native';

import AppLoading from 'expo-app-loading';
import {
useFonts,
Inter_400Regular,
Inter_500Medium
} from '@expo-google-fonts/inter';

import Widget from './src/components/Widget';
import { theme } from './src/theme';

export default function App() {
const [fontsLoaded] = useFonts({
Inter_400Regular,
Inter_500Medium,
});

if (!fontsLoaded) {
return <AppLoading />;
}

return (
<View style={styles.container}>
<Text>Open up App.tsx to start working on your app!</Text>
<StatusBar style="auto" />
<StatusBar style='light'
backgroundColor='transparent'
translucent />
<Widget />
</View>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: theme.colors.background,
},
});
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: ['react-native-reanimated/plugin'],
};
};
Loading

0 comments on commit 22cda4b

Please sign in to comment.