Skip to content

Commit b6ce9c4

Browse files
author
Marek Rozmus
committed
Merge branch 'add_module_sources'
2 parents 10c3550 + 43cb45d commit b6ce9c4

14 files changed

+4529
-0
lines changed

.babelrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"browsers": [
8+
">0.25%",
9+
"not ie 11",
10+
"not op_mini all",
11+
"safari >= 11",
12+
"not safari 5.1"
13+
]
14+
},
15+
"modules": false
16+
}
17+
],
18+
"@babel/preset-react"
19+
],
20+
"plugins": [["@babel/plugin-proposal-class-properties"]]
21+
}

.eslintrc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"node": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:prettier/recommended",
9+
"plugin:react/recommended"
10+
],
11+
"parser": "babel-eslint",
12+
"plugins": ["react-hooks"],
13+
"settings": {
14+
"react": {
15+
"version": "16.8"
16+
}
17+
},
18+
"rules": {
19+
"react-hooks/rules-of-hooks": "error",
20+
"react-hooks/exhaustive-deps": "warn"
21+
}
22+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
node_modules/
3+
dist

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright 2019 Sandstream Development Sp. z o. o.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,28 @@
11
# react-swipeable-list
2+
3+
## Installation
4+
5+
```bash
6+
npm install sandstreamdev/react-swipeable-list
7+
# or via yarn
8+
yarn add sandstreamdev/react-swipeable-list
9+
```
10+
11+
## Usage
12+
13+
```javascript jsx
14+
<SwipeableList>
15+
<SwipeableListItem
16+
swipeRight={{
17+
background: <div>Left background</div>,
18+
action: () => console.info('swipe action triggered')
19+
}}
20+
>
21+
<div>Item name</div>
22+
</SwipeableListItem>
23+
</SwipeableList>
24+
```
25+
26+
## License
27+
28+
[MIT](LICENSE).

0 commit comments

Comments
 (0)