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
> Thank you for using the `react-native-raw-bottom-sheet` library.
6
-
>
7
-
> This library has been published for over 5 years and I've noticed that new libraries are being published frequently, and I hope that those newer libraries will replace this small library with time, that's why I have stopped maintaining this project for the past few years.
8
-
>
9
-
> However, I was pleasantly surprised to see that the number of installations has remained high over the past year. Therefore, I have decided to continue to maintain this project.
10
-
>
11
-
> I will ensure that this project remains simple and lightweight, without requiring any configuration or external dependencies.
12
-
>
13
-
> I would also like to express my gratitude to all the contributors who have made pull requests. Thank you!
3
+
## Hooray! The new version 3 has been released.
4
+
5
+
Please pay close attention if you are upgrading the RBSheet from version 2 to version 3.
6
+
7
+
- Functional Components: Starting from v3.0.0, RBSheet has been completely rewritten using Functional Components. This improves performance and aligns with modern React practices.
8
+
- Prop Removal & Renaming: Several props have been removed and renamed for improved clarity and maintainability. Please refer to the updated documentation for a complete list of available props and their intended behavior.
| height | number | Height of Bottom Sheet | 260 |
144
-
| minClosingHeight | number | Minimum height of Bottom Sheet before close | 0 |
145
-
| openDuration | number | Open Bottom Sheet animation duration | 300 (ms) |
146
-
| closeDuration | number | Close Bottom Sheet animation duration | 200 (ms) |
147
-
| closeOnDragDown | boolean | Use gesture drag down to close Bottom Sheet | false |
148
-
| closeOnTouchablesDragDown | boolean | Use gesture drag down on touchable components to close Bottom Sheet<br/> (Doesn't work for touchable components inside a scrollView) <br/> (closeOnDragDown must be enabled for this to work) | false |
149
-
| dragFromTopOnly | boolean | Drag only the top area of the draggableIcon to close Bottom Sheet instead of the whole content | false |
150
-
| closeOnPressMask | boolean | Press the area outside to close Bottom Sheet | true |
151
-
| closeOnPressBack | boolean | Press back android to close Bottom Sheet (Android only) | true |
152
-
| onClose | function | Callback function when Bottom Sheet has closed | null |
153
-
| onOpen | function | Callback function when Bottom Sheet has opened | null |
| height | number | The height of bottom sheet. | 260 |
118
+
| openDuration | number | Duration of the animation when opening bottom sheet. | 300 (ms) |
119
+
| closeDuration | number | Duration of the animation when closing bottom sheet. | 200 (ms) |
120
+
| closeOnPressMask | boolean | Press the outside area (mask) to close bottom sheet. | true |
121
+
| closeOnPressBack | boolean | Press hardware back android to close bottom sheet (Android only). | false |
122
+
| draggable | boolean | Enable the drag-down gesture to close the bottom sheet. | false |
123
+
| dragOnContent | boolean | The draggable is only worked on the draggable icon. Set this to `true`<br />if you want to drag on the content as well (doesn't work with ScrollView). | false |
124
+
| useNativeDriver | boolean | Use the native driver to run smoother animation. | false |
| open | The method to open bottom sheet. |`refRBSheet.current.open()`|
146
+
| close | The method to close bottom sheet. |`refRBSheet.current.close()`|
147
+
148
+
## CONTRIBUTING
149
+
150
+
I'm really glad you're reading this, because we need volunteer developers to help bring this project to life.
174
151
175
-
##Note
152
+
#### How to contribute:
176
153
177
-
- If you combind `RBSheet` with <ahref="https://github.com/kmagiera/react-native-gesture-handler"target="_blank">react-native-gesture-handler</a>, the components inside RBSheet will not fire onPress event on Android [#37](https://github.com/nysamnang/react-native-raw-bottom-sheet/issues/37).
178
-
- The demo source codes are in `example folder`.
154
+
1. Clone this repository
155
+
2. Open project, then run `yarn` to install devDependencies
156
+
3. Add your magic code for contribution
157
+
4. Test your code
158
+
- Navigate to `example` folder
159
+
- Run `yarn` & `yarn start` to run the example project
160
+
- Test your code in `example/App.js`
161
+
5. Update `README.md` to update documentation (Optional)
162
+
6. Write unit testing in `__tests__` folder (Optional)
163
+
7. Update `index.d.ts` to update typing (Optional)
164
+
8. Make a pull request, Genius!
179
165
180
166
## License
181
167
182
-
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/nysamnang/react-native-raw-bottom-sheet/blob/master/LICENSE) file for details
168
+
This project is licensed under the MIT License - see the [LICENSE.md](https://github.com/nysamnang/react-native-raw-bottom-sheet/blob/master/LICENSE) file for details.
0 commit comments