Skip to content

Commit 26d6998

Browse files
authored
docs: add note about order of snapPoints array values (#177)
1 parent df2f054 commit 26d6998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Example extends React.Component {
5858

5959
| name | required | default | description |
6060
| ------------------------- | -------- | ------- | ------------|
61-
| snapPoints | yes | | E.g. `[300, 200, 0]`. Points for snapping of bottom sheet coomponent. They define distance from bottom of the screen. Might be number or percent (as string e.g. `'20%'`) for points or percents of screen height from bottom. |
61+
| snapPoints | yes | | E.g. `[300, 200, 0]`. Points for snapping of bottom sheet coomponent. They define distance from bottom of the screen. Might be number or percent (as string e.g. `'20%'`) for points or percents of screen height from bottom. Note: Array values must be in descending order. |
6262
| initialSnap | no | 0 | Determines initial snap point of bottom sheet. The value is the index from snapPoints. |
6363
| renderContent | no | | Method for rendering scrollable content of bottom sheet. |
6464
| renderHeader | no | | Method for rendering non-scrollable header of bottom sheet. |

0 commit comments

Comments
 (0)