You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
9
10
10
11

11
12
12
13
## Usage
13
14
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`
15
16
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';`
25
18
26
19
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).
27
20
28
-
It can be passed other props:
21
+
It can be passed additional props:
29
22
30
23
-`shouldBounceOnMount` (default = `true`) - To alert the user that swiping is possible, the first row can bounce on component mount. Type `boolean`
31
24
@@ -35,8 +28,8 @@ It can be passed other props:
35
28
36
29
## Example
37
30
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! 😎
39
32
40
33
## History & Shoutouts
41
34
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>)
0 commit comments