react-native-indicator
Advanced tools
Comparing version 0.6.2 to 0.6.3
@@ -11,6 +11,10 @@ /** | ||
static propTypes = { | ||
text: PropTypes.string.isRequired, | ||
text: PropTypes.string, | ||
textStyle: Text.propTypes.style | ||
}; | ||
static defaultProps = { | ||
text: 'Loading' | ||
}; | ||
constructor(props) { | ||
@@ -17,0 +21,0 @@ super(props); |
{ | ||
"name": "react-native-indicator", | ||
"version": "0.6.2", | ||
"version": "0.6.3", | ||
"description": "React Native Indicator Component", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -10,2 +10,3 @@ # react-native-indicator | ||
<img src="/screenshot/ss3.gif" width="372" height="666" /> | ||
<img src="/screenshot/ss4.gif" width="372" height="666" /> | ||
@@ -51,2 +52,3 @@ ## Installation | ||
- [NineCubesLoader](#nineCubesLoader) | ||
- [LineDotsLoader](#lineDotsLoader) | ||
@@ -79,3 +81,3 @@ ``` | ||
| ---- | ---- | ---- | ---- | | ||
| size | number | 10 | circle's size | | ||
| size | number | 10 | dot's size | | ||
| color | string | '#1e90ff' | indicator's color | | ||
@@ -87,6 +89,6 @@ | betweenSpace | number | 5 | distance between two dots | | ||
| prop | type | default | isRequired | description | | ||
| ---- | ---- | ---- | ---- | ---- | | ||
| **text** | string | none | **yes** | contents | | ||
| textStyle | style | inherited | no | text's style | | ||
| prop | type | default | description | | ||
| ---- | ---- | ---- | ---- | | ||
| text | string | 'Loading' | contents | | ||
| textStyle | style | inherited | text's style | | ||
@@ -203,4 +205,15 @@ | ||
##### LineDotsLoader | ||
**warning:** *this indicator will occupy a whole horizontal space automatically, which mean you don't need to set any center props. Just keeping the direction of its parent View is vertical.* | ||
| prop | type | default | description | | ||
| ---- | ---- | ---- | ---- | | ||
| size | number | 10 | dot's size | | ||
| color | string | '#1e90ff' | indicator's color | | ||
| dotsNumber | number | 5 | the number of dots | | ||
| betweenSpace | number | 5 | distance between two dots | | ||
## License | ||
MIT |
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
1339815
32
1260
214
0