From 4413ec53c756f5bdf0b7c1e422c775733061101d Mon Sep 17 00:00:00 2001 From: Wasim Akram Mallick Date: Wed, 1 Oct 2025 22:46:04 +0530 Subject: [PATCH 1/2] snapPoints feature added --- example/App.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/example/App.js b/example/App.js index 533533c..879db28 100644 --- a/example/App.js +++ b/example/App.js @@ -57,7 +57,12 @@ const App = () => { {/* List Menu */} - + Create {data.lists.map(list => ( @@ -75,6 +80,7 @@ const App = () => { {/* Grid Menu */} { {/* Date Picker IOS */} console.log('RBSheet is Opened')} onClose={() => console.log('RBSheet is Closed')}> @@ -130,7 +137,8 @@ const App = () => { {/* TextInput */} { {/* Alert */} Date: Wed, 1 Oct 2025 22:47:42 +0530 Subject: [PATCH 2/2] feat: add snapPoints support for RBSheet --- README.md | 47 +++++++++++++++++-- index.d.ts | 17 ++++++- package.json | 2 +- src/index.js | 128 +++++++++++++++++++++++++++++++-------------------- 4 files changed, 138 insertions(+), 56 deletions(-) diff --git a/README.md b/README.md index d57b2c8..d12bfa6 100644 --- a/README.md +++ b/README.md @@ -64,6 +64,7 @@ export default function Example() { /> { }; ``` +#### Bottom Sheet with snap points + +```jsx +import React, {useRef} from 'react'; +import {View, Button, Text} from 'react-native'; +import RBSheet from 'react-native-raw-bottom-sheet'; + +export default function Example() { + const refRBSheet = useRef(); + + return ( + +