Skip to content

Commit dee07ce

Browse files
authored
Merge pull request #58 from esthor/update-description
Update description
2 parents 5602cc9 + f8a7b5a commit dee07ce

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

README.md

+6-12
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,21 @@
66
![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)
77
[![Build status](https://build.appcenter.ms/v0.1/apps/13534511-14df-4ea0-b460-22eb6d84e8fe/branches/main/badge)](https://appcenter.ms)
88

9-
A Swipeable FlatList for React-Native with Quick Actions & Animations
9+
A zero-dependency, Swipeable FlatList for React-Native with Quick Actions, Gestures, and Animations.
1010

1111
![animated screenshot of a swipeable flatlist email inbox mockup using react-native-swipeable-list](images/react-native-swipeable-list-demo2.gif)
1212

1313
## Usage
1414

1515
1. Install the package in your project:
1616

17-
`npm install react-native-swipeable-list`
17+
`npm install react-native-swipeable-list` or `yarn add react-native-swipeable-list`
1818

19-
or
20-
21-
`yarn add react-native-swipeable-list`
22-
23-
2. Import the component into your component:
24-
25-
`import SwipeableFlatList from 'react-native-swipeable-list';`
19+
2. Import the component into your component: `import SwipeableFlatList from 'react-native-swipeable-list';`
2620

2721
3. Pass it a data array. It inherits [FlatListProps from the standard `FlatList` component from react-native](https://facebook.github.io/react-native/docs/flatlist).
2822

29-
It can be passed other props:
23+
It can be passed additional props:
3024

3125
- `shouldBounceOnMount` (default = `true`) - To alert the user that swiping is possible, the first row can bounce on component mount. Type `boolean`
3226

@@ -36,8 +30,8 @@ It can be passed other props:
3630

3731
## Example
3832

39-
Check out the example in the `/examples` folder. Clone this repo, then `cd examples && yarn install && yarn start` and then either `react-native run-ios` or `react-native run-android` to get the app up and running locally. Play with the code and see what you can do.
33+
Check out the example in the `/examples` folder. Clone this repo, then `cd examples && yarn install && yarn start` and then either `react-native run-ios` or `react-native run-android` to get the app up and running locally. Play with the code and see what you can do! 😎
4034

4135
## History & Shoutouts
4236

43-
Started from the `SwipeableFlatList` component that was removed from react-native's experimental libraries. (See: https://github.com/facebook/react-native/commit/9ca7989f60cc8137705effeaad0f128fa73ed2e4)
37+
Started from the `SwipeableFlatList` component that was removed from react-native's experimental libraries. (See: <https://github.com/facebook/react-native/commit/9ca7989f60cc8137705effeaad0f128fa73ed2e4>)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-native-swipeable-list",
33
"version": "0.1.2",
4-
"description": "A Swipeable FlatList for React-Native with Quick Actions & Animations",
4+
"description": "A zero-dependency Swipeable FlatList for React-Native with Quick Actions, Gestures, and Animations.",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)