-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
122 lines (115 loc) · 3.3 KB
/
App.js
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/**
*
* @format
* @flow strict-local
*/
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
StatusBar,
Text,
Button,
AlertMacOS,
} from 'react-native-macos';
import {musicData} from './lib/data';
import CoverBlock from './components/music/Cover/CoverBlock.react';
import HorizontalLine from './components/ui/HorizontalLine.react';
import ThemeButton from './components/ui/ThemeButton.react';
const createTwoButtonAlert = () =>
AlertMacOS.alert('Alert Title', 'My Alert Msg', [
{
text: 'Cancel',
onPress: () => console.log('Cancel Pressed'),
style: 'cancel',
},
{text: 'OK', onPress: () => console.log('OK Pressed')},
]);
const App: () => React$Node = () => {
return (
<React.Fragment>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={styles.scrollView}>
<View style={styles.body}>
<Text style={styles.appBarTitle}>React Native Desktop</Text>
<View style={styles.musicSection}>
<Text style={styles.headline}>Bushwick pop-up</Text>
<HorizontalLine backgroundColor="grey" />
<CoverBlock data={musicData} />
</View>
<Text style={styles.exampleText}>
I'm baby health goth normcore occupy drinking vinegar
lumbersexual, franzen affogato chambray gluten-free. Pitchfork
hell of godard, tote bag keytar direct trade kombucha aesthetic
typewriter kickstarter kinfolk. Put a bird on it photo booth
shabby chic marfa. Poke health goth prism authentic lumbersexual
occupy iceland four loko, cray twee air plant YOLO. Yr lo-fi
neutra green juice kitsch, coloring book banjo art party
fingerstache portland 90's crucifix kogi VHS try-hard. Photo booth
iPhone selfies, shoreditch listicle polaroid bushwick drinking
vinegar next level gastropub. Twee bicycle rights typewriter,
unicorn raclette listicle sriracha street art.
</Text>
<View style={styles.buttonRow}>
<Button
color="rgb(138,43,226)"
onPress={createTwoButtonAlert}
title="Utility Button"
/>
<ThemeButton
color="rgb(138,43,226)"
onPress={createTwoButtonAlert}
title="Action"
/>
</View>
</View>
</ScrollView>
</SafeAreaView>
</React.Fragment>
);
};
const styles = StyleSheet.create({
scrollView: {
backgroundColor: '#202020',
height: '100%',
width: '100%',
},
body: {
padding: 30,
backgroundColor: '#202020',
height: '100%',
width: '100%',
},
musicSection: {
marginBottom: 100,
},
headline: {
color: 'white',
fontSize: 17,
fontWeight: '600',
},
appBarTitle: {
color: 'white',
textAlign: 'center',
fontSize: 40,
fontWeight: '600',
},
exampleText: {
marginTop: 50,
color: 'white',
fontSize: 20,
fontWeight: '300',
},
buttonRow: {
display: 'flex',
flexDirection: 'row',
justifyContent: 'flex-end',
alignItems: 'center',
},
});
export default App;