forked from kristerkari/react-native-svg-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
70 lines (67 loc) · 1.85 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
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow
*/
import React, { Component } from "react";
import { SafeAreaView, ScrollView } from "react-native";
import Autocode from "./logos/autocode.svg";
import Bower from "./logos/bower.svg";
import Composer from "./logos/composer.svg";
import Drupal from "./logos/drupal.svg";
import Egghead from "./logos/egghead.svg";
import Ember from "./logos/ember.svg";
import Hostgator from "./logos/hostgator.svg";
import Pug from "./logos/pug.svg";
import ReduxObservable from "./logos/redux-observable.svg";
import RubyMine from "./logos/rubymine.svg";
import Snyk from "./logos/snyk.svg";
import Stylelint from "./logos/stylelint.svg";
type Props = {};
export default class App extends Component<Props> {
render() {
return (
<SafeAreaView style={styles.container}>
<ScrollView
style={styles.scrollView}
contentContainerStyle={styles.containerStyles}
>
<Bower style={styles.logo} />
<Snyk style={styles.logo} />
<Drupal style={styles.logo} />
<Composer style={styles.logo} />
<Ember style={styles.logo} />
<Autocode style={styles.logo} />
<Egghead style={styles.logo} />
<Hostgator style={styles.logo} />
<Pug style={styles.logo} />
<Stylelint style={styles.logo} />
<ReduxObservable style={styles.logo} />
<RubyMine style={styles.logo} />
</ScrollView>
</SafeAreaView>
);
}
}
const styles = {
logo: {
marginTop: 20,
marginBottom: 20
},
container: {
flex: 1,
justifyContent: "flex-start",
alignItems: "center",
backgroundColor: "#efefef"
},
scrollView: {
width: "100%"
},
containerStyles: {
display: "flex",
flexDirection: "column",
alignItems: "center"
}
};