forked from anas-araid/rn-parallax-card
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
28 lines (24 loc) · 740 Bytes
/
App.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { useFonts } from 'expo-font';
import React from 'react';
import { GestureHandlerRootView } from 'react-native-gesture-handler';
import styled from 'styled-components/native';
import { Card } from './components/card';
const App = () => {
const [fontsLoaded] = useFonts({
'AttilaSansClassic-Medium': require('./assets/fonts/AttilaSansClassic-Medium.otf'),
'NeueHaasUnicaPro-Regular': require('./assets/fonts/NeueHaasUnicaPro-Regular.otf')
});
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<Containter>
<Card />
</Containter>
</GestureHandlerRootView>
);
};
const Containter = styled.View`
justify-content: center;
align-items: center;
height: 100%;
`;
export default App;