Skip to content

Commit 4198c5b

Browse files
committed
Merge branch 'main' into update-example-app
2 parents 60f84a8 + d68446a commit 4198c5b

File tree

5 files changed

+187
-96
lines changed

5 files changed

+187
-96
lines changed

.npmignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ node_modules
99
tmp
1010

1111
# Examples
12-
examples
12+
examples
13+
images

README.md

+9-16
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,24 @@
11
# react-native-swipeable-list
22

3-
[![npm version](https://badge.fury.io/js/react-native-swipeable-list.svg)](https://badge.fury.io/js/react-native-swipeable-list)
4-
![NPM](https://img.shields.io/npm/l/react-native-swipeable-list?color=31%2C191%2C31)
3+
[![npm version](https://img.shields.io/npm/v/react-native-swipeable-list?color=brightgreen)](https://www.npmjs.com/package/react-native-swipeable-list)
4+
[![Downloads](https://img.shields.io/npm/dm/react-native-swipeable-list.svg?sanitize=true)](https://npmcharts.com/compare/react-native-swipeable-list?minimal=true)
5+
![License](https://img.shields.io/npm/l/react-native-swipeable-list?color=brightgreen)
56
![PRs](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)
67
[![Build status](https://build.appcenter.ms/v0.1/apps/13534511-14df-4ea0-b460-22eb6d84e8fe/branches/main/badge)](https://appcenter.ms)
78

8-
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.
910

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

1213
## Usage
1314

14-
1. Install the package in your project:
15+
1. Install the package in your project: `npm install react-native-swipeable-list` or `yarn add react-native-swipeable-list`
1516

16-
`npm install react-native-swipeable-list`
17-
18-
or
19-
20-
`yarn add react-native-swipeable-list`
21-
22-
2. Import the component into your component:
23-
24-
`import SwipeableFlatList from 'react-native-swipeable-list';`
17+
2. Import the component into your component: `import SwipeableFlatList from 'react-native-swipeable-list';`
2518

2619
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).
2720

28-
It can be passed other props:
21+
It can be passed additional props:
2922

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

@@ -35,8 +28,8 @@ It can be passed other props:
3528

3629
## Example
3730

38-
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.
31+
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! 😎
3932

4033
## History & Shoutouts
4134

42-
Started from the `SwipeableFlatList` component that was removed from react-native's experimental libraries. (See: https://github.com/facebook/react-native/commit/9ca7989f60cc8137705effeaad0f128fa73ed2e4)
35+
Started from the `SwipeableFlatList` component that was removed from react-native's experimental libraries. (See: <https://github.com/facebook/react-native/commit/9ca7989f60cc8137705effeaad0f128fa73ed2e4>)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.5)
5+
rexml
6+
activesupport (6.1.7.1)
7+
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
i18n (>= 1.6, < 2)
9+
minitest (>= 5.1)
10+
tzinfo (~> 2.0)
11+
zeitwerk (~> 2.3)
12+
addressable (2.8.0)
13+
public_suffix (>= 2.0.2, < 5.0)
14+
algoliasearch (1.27.5)
15+
httpclient (~> 2.8, >= 2.8.3)
16+
json (>= 1.5.1)
17+
atomos (0.1.3)
18+
claide (1.1.0)
19+
cocoapods (1.11.3)
20+
addressable (~> 2.8)
21+
claide (>= 1.0.2, < 2.0)
22+
cocoapods-core (= 1.11.3)
23+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
24+
cocoapods-downloader (>= 1.4.0, < 2.0)
25+
cocoapods-plugins (>= 1.0.0, < 2.0)
26+
cocoapods-search (>= 1.0.0, < 2.0)
27+
cocoapods-trunk (>= 1.4.0, < 2.0)
28+
cocoapods-try (>= 1.1.0, < 2.0)
29+
colored2 (~> 3.1)
30+
escape (~> 0.0.4)
31+
fourflusher (>= 2.3.0, < 3.0)
32+
gh_inspector (~> 1.0)
33+
molinillo (~> 0.8.0)
34+
nap (~> 1.0)
35+
ruby-macho (>= 1.0, < 3.0)
36+
xcodeproj (>= 1.21.0, < 2.0)
37+
cocoapods-core (1.11.3)
38+
activesupport (>= 5.0, < 7)
39+
addressable (~> 2.8)
40+
algoliasearch (~> 1.0)
41+
concurrent-ruby (~> 1.1)
42+
fuzzy_match (~> 2.0.4)
43+
nap (~> 1.0)
44+
netrc (~> 0.11)
45+
public_suffix (~> 4.0)
46+
typhoeus (~> 1.0)
47+
cocoapods-deintegrate (1.0.5)
48+
cocoapods-downloader (1.6.3)
49+
cocoapods-plugins (1.0.0)
50+
nap
51+
cocoapods-search (1.0.1)
52+
cocoapods-trunk (1.6.0)
53+
nap (>= 0.8, < 2.0)
54+
netrc (~> 0.11)
55+
cocoapods-try (1.2.0)
56+
colored2 (3.1.2)
57+
concurrent-ruby (1.1.10)
58+
escape (0.0.4)
59+
ethon (0.15.0)
60+
ffi (>= 1.15.0)
61+
ffi (1.15.5)
62+
fourflusher (2.3.1)
63+
fuzzy_match (2.0.4)
64+
gh_inspector (1.1.3)
65+
httpclient (2.8.3)
66+
i18n (1.12.0)
67+
concurrent-ruby (~> 1.0)
68+
json (2.6.1)
69+
minitest (5.17.0)
70+
molinillo (0.8.0)
71+
nanaimo (0.3.0)
72+
nap (1.1.0)
73+
netrc (0.11.0)
74+
public_suffix (4.0.6)
75+
rexml (3.2.5)
76+
ruby-macho (2.5.1)
77+
typhoeus (1.4.0)
78+
ethon (>= 0.9.0)
79+
tzinfo (2.0.5)
80+
concurrent-ruby (~> 1.0)
81+
xcodeproj (1.21.0)
82+
CFPropertyList (>= 2.3.3, < 4.0)
83+
atomos (~> 0.1.3)
84+
claide (>= 1.0.2, < 2.0)
85+
colored2 (~> 3.1)
86+
nanaimo (~> 0.3.0)
87+
rexml (~> 3.2.4)
88+
zeitwerk (2.6.6)
89+
90+
PLATFORMS
91+
ruby
92+
93+
DEPENDENCIES
94+
cocoapods (~> 1.11, >= 1.11.2)
95+
RUBY VERSION
96+
ruby 2.7.4p191
97+
BUNDLED WITH
98+
2.2.27

0 commit comments

Comments
 (0)