-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
39 lines (35 loc) · 787 Bytes
/
App.tsx
File metadata and controls
39 lines (35 loc) · 787 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
import { StyleSheet, Text, View } from 'react-native';
import { BevelView } from '../src/BevelView';
import React from 'react';
const App = () => (
<View style={styles.container}>
<BevelView style={styles.bevel}>
<Text style={styles.text}>TEST</Text>
</BevelView>
</View>
);
const styles = StyleSheet.create({
bevel: {
width: 200,
height: 200,
backgroundColor: '#fff',
shadowColor: '#333',
shadowOffset: { width: 10, height: 10 },
shadowOpacity: 0.2,
shadowRadius: 20,
borderRadius: 20,
elevation: 3,
justifyContent: 'center',
alignItems: 'center',
},
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
},
text: {
fontSize: 50,
color: '#333',
},
});
export default App;