Skip to content

Commit 1b2de32

Browse files
committed
Split README.md
1 parent 9830720 commit 1b2de32

File tree

2 files changed

+51
-43
lines changed

2 files changed

+51
-43
lines changed

README.md

+2-43
Original file line numberDiff line numberDiff line change
@@ -8,47 +8,6 @@
88

99
* Expo
1010

11-
## Using with Expo
11+
## Usage
1212

13-
### Install
14-
15-
* `npm install --save react-native-gradient-box-expo`
16-
17-
### Usage
18-
19-
```js
20-
import GradientBox from 'react-native-gradient-box-expo';
21-
22-
export default class App extends React.Component {
23-
render() {
24-
return (
25-
<View>
26-
<GradientBox
27-
colors={['#fcc', '#cfc', '#ccf']}
28-
start={[1, 0]}
29-
end={[0, 1]}
30-
borderWidth={5}
31-
borderRadius={5}
32-
style={{ padding: 5 }}
33-
>
34-
<Text>Hello, GradientBox!</Text>
35-
</GradientBox>
36-
</View>
37-
);
38-
}
39-
}
40-
```
41-
42-
## Props
43-
44-
* Extended from LinearGradient
45-
- colors (required)
46-
- start
47-
- end
48-
- location
49-
50-
* Other props
51-
- borderWidth (required)
52-
- borderRadius
53-
- containerStyle
54-
- style
13+
* [Using with Expo](https://github.com/maricuru/react-native-gradient-box/tree/master/expo)

expo/README.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# react-native-gradient-box-expo
2+
3+
* Component of box with Gradient border
4+
5+
![ScreenShot of GradientBox](https://raw.githubusercontent.com/maricuru/react-native-gradient-box/images/screenshot.png)
6+
7+
## Install
8+
9+
* `npm install --save react-native-gradient-box-expo`
10+
11+
## Usage
12+
13+
```js
14+
import GradientBox from 'react-native-gradient-box-expo';
15+
16+
export default class App extends React.Component {
17+
render() {
18+
return (
19+
<View>
20+
<GradientBox
21+
colors={['#fcc', '#cfc', '#ccf']}
22+
start={[1, 0]}
23+
end={[0, 1]}
24+
borderWidth={5}
25+
borderRadius={5}
26+
style={{ padding: 5 }}
27+
>
28+
<Text>Hello, GradientBox!</Text>
29+
</GradientBox>
30+
</View>
31+
);
32+
}
33+
}
34+
```
35+
36+
## Props
37+
38+
* Extended from LinearGradient
39+
40+
* colors (required)
41+
* start
42+
* end
43+
* location
44+
45+
* Other props
46+
* borderWidth (required)
47+
* borderRadius
48+
* containerStyle
49+
* style

0 commit comments

Comments
 (0)