react-native-awesome-component
Version:
React Native Awesome Component
21 lines (14 loc) • 523 B
Markdown
is Text component with placeholder. This component have 2 state (`with value`, `loading / without value`).
<img src="./images/placeholder-text-loading.PNG" width="400px" >
<img src="./images/placeholder-text.PNG" width="400px" >
**How to use**
```javascript
import {PlaceholderText} from 'react-native-awesome-component'
return(
<PlaceholderText>{this.state.text}</PlaceholderText> // show text
<PlaceholderText>''</PlaceholderText> // show loading
)
```
**Props**
Same as `<Text/>` props
This