Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hunghkit/effect-views


https://github.com/hunghkit/effect-views

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

        

## Effect-views

## Get Started

### 1. Installation
On the command prompt run the following commands

```sh
$ npm install --save effect-views
```
### 2. Demo
![Effect-views example](/example/images/demo.gif)

```sh
import React, { Component } from 'react';
import {
Text,
View,
StyleSheet,
AppRegistry,
} from 'react-native';

import { rippleView, RippleView } from 'effect-views';

export default class example extends Component {
renderItem(index) {
return (

{index}

)
}

render() {
const Button = rippleView(View, { color: 'red' });

return (

{[...new Array(10)].map((_, index) => this.renderItem(index))}

RippleView


Overlay red


);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: 50,
backgroundColor: '#F5FCFF',
},
item: {
padding: 10,
borderBottomWidth: 1,
alignItems: 'center',
},
btn: {
margin: 4,
padding: 10,
alignItems: 'center',
backgroundColor: '#4CAF50',
},
});
```
### 3. LICENSE
MIT License