We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fee815c commit cb15be4Copy full SHA for cb15be4
src/index.js
@@ -0,0 +1,24 @@
1
+import React from 'react';
2
+import { StyleSheet, View } from 'react-native';
3
+
4
+export default props => {
5
+ return (
6
+ <div
7
+ style={{
8
+ display: 'flex',
9
+ flex: 1,
10
+ flexDirection: 'column',
11
+ alignItems: 'stretch',
12
+ background: `linear-gradient(to top, ${props.colors.join(',')})`,
13
+ }}
14
+ >
15
+ <View style={[styles.container, props.style]}>{props.children}</View>
16
+ </div>
17
+ );
18
+};
19
20
+const styles = StyleSheet.create({
21
+ container: {
22
23
+ },
24
+});
0 commit comments