Skip to content

Commit cb15be4

Browse files
committed
Add minimal implementation
1 parent fee815c commit cb15be4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Diff for: src/index.js

+24
Original file line numberDiff line numberDiff line change
@@ -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+
flex: 1,
23+
},
24+
});

0 commit comments

Comments
 (0)