Skip to content

Commit f8a7b5a

Browse files
committed
tighten up formatting
1 parent c5d76b1 commit f8a7b5a

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

README.md

+4-10
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,13 @@ A zero-dependency, Swipeable FlatList for React-Native with Quick Actions, Gestu
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,7 +30,7 @@ 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

0 commit comments

Comments
 (0)