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

https://github.com/newraina/react-actionsheet


https://github.com/newraina/react-actionsheet

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# react-actionsheet

# Installation

```
npm i react-actionsheet --save
```

# Demo

![example gif](./example/example.gif)

```javascript
class App extends Component {

state = {
show: false
}

onClick = () => {
const { show } = this.state
this.setState({show: !show})
}

onRequestClose = () => {
this.onClick()
}

render() {
const { show } = this.state

const tip = show ? '隐藏' : '显示'
const menus = [{content: '点我'}, {content: '不要点我'}]

return (


{tip}



)
}
}
```