react-native-bottom-sheet-stack 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +53 -41
- package/lib/commonjs/adapters/gorhom-sheet/GorhomSheetAdapter.js.map +1 -1
- package/lib/commonjs/adapters/gorhom-sheet/index.js +6 -0
- package/lib/commonjs/adapters/gorhom-sheet/index.js.map +1 -1
- package/lib/commonjs/index.js +0 -34
- package/lib/commonjs/index.js.map +1 -1
- package/lib/typescript/src/adapters/gorhom-sheet/GorhomSheetAdapter.d.ts.map +1 -1
- package/lib/typescript/src/adapters/gorhom-sheet/index.d.ts +4 -0
- package/lib/typescript/src/adapters/gorhom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +1 -7
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/package.json +19 -1
- package/src/adapters/gorhom-sheet/GorhomSheetAdapter.tsx +1 -1
- package/src/adapters/gorhom-sheet/index.ts +5 -0
- package/src/index.tsx +2 -16
- package/lib/commonjs/BottomSheetManaged.js +0 -13
- package/lib/commonjs/BottomSheetManaged.js.map +0 -1
- package/lib/typescript/src/BottomSheetManaged.d.ts +0 -11
- package/lib/typescript/src/BottomSheetManaged.d.ts.map +0 -1
- package/src/BottomSheetManaged.tsx +0 -14
package/README.md
CHANGED
|
@@ -1,27 +1,17 @@
|
|
|
1
1
|
# react-native-bottom-sheet-stack
|
|
2
2
|
|
|
3
|
-
A stack manager for
|
|
3
|
+
A stack manager for bottom sheets and modals in React Native. Supports `push`, `switch`, and `replace` navigation modes, iOS-style scale animations, and React context preservation. Works with any bottom sheet or modal library via a pluggable adapter architecture.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Features
|
|
6
6
|
|
|
7
|
-
**
|
|
8
|
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
15
|
-
- [API Reference](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/api/components)
|
|
16
|
-
|
|
17
|
-
## ✨ Features
|
|
18
|
-
|
|
19
|
-
- 📚 **Stack Navigation** - `push`, `switch`, and `replace` modes for managing multiple sheets
|
|
20
|
-
- 🎭 **Scale Animation** - iOS-style background scaling effect when sheets are stacked
|
|
21
|
-
- 🔗 **Context Preservation** - Portal-based API that preserves React context in bottom sheets
|
|
22
|
-
- ⚡ **Persistent Sheets** - Pre-mounted sheets that open instantly and preserve state
|
|
23
|
-
- 🔒 **Type-Safe** - Full TypeScript support with type-safe portal IDs and params
|
|
24
|
-
- 📦 **Group Support** - Isolated stacks for different parts of your app
|
|
7
|
+
- **Adapter Architecture** - Pluggable adapters for different bottom sheet/modal libraries. Ships with adapters for `@gorhom/bottom-sheet`, `react-native-modal`, `react-native-actions-sheet`, and a custom modal. You can also build your own.
|
|
8
|
+
- **Stack Navigation** - `push`, `switch`, and `replace` modes for managing multiple sheets
|
|
9
|
+
- **Scale Animation** - iOS-style background scaling effect when sheets are stacked
|
|
10
|
+
- **Context Preservation** - Portal-based API that preserves React context in bottom sheets
|
|
11
|
+
- **Mixed Stacking** - Bottom sheets and modals coexist in the same stack
|
|
12
|
+
- **Persistent Sheets** - Pre-mounted sheets that open instantly and preserve state
|
|
13
|
+
- **Type-Safe** - Full TypeScript support with type-safe portal IDs and params
|
|
14
|
+
- **Group Support** - Isolated stacks for different parts of your app
|
|
25
15
|
|
|
26
16
|
## Installation
|
|
27
17
|
|
|
@@ -32,56 +22,78 @@ yarn add react-native-bottom-sheet-stack
|
|
|
32
22
|
### Peer Dependencies
|
|
33
23
|
|
|
34
24
|
```bash
|
|
35
|
-
yarn add
|
|
25
|
+
yarn add react-native-reanimated react-native-safe-area-context react-native-teleport react-native-worklets zustand
|
|
36
26
|
```
|
|
37
27
|
|
|
38
|
-
|
|
28
|
+
Additionally, install the dependencies required by the adapter(s) you plan to use (e.g. `@gorhom/bottom-sheet` and `react-native-gesture-handler` for `GorhomSheetAdapter`).
|
|
29
|
+
|
|
30
|
+
## Quick Example (with `@gorhom/bottom-sheet`)
|
|
39
31
|
|
|
40
32
|
```tsx
|
|
33
|
+
import { forwardRef } from 'react';
|
|
34
|
+
import { View, Text, Button } from 'react-native';
|
|
35
|
+
import { BottomSheetView } from '@gorhom/bottom-sheet';
|
|
41
36
|
import {
|
|
42
37
|
BottomSheetManagerProvider,
|
|
43
38
|
BottomSheetHost,
|
|
44
39
|
BottomSheetScaleView,
|
|
45
|
-
BottomSheetManaged,
|
|
46
40
|
useBottomSheetManager,
|
|
47
41
|
useBottomSheetContext,
|
|
48
42
|
} from 'react-native-bottom-sheet-stack';
|
|
43
|
+
import { GorhomSheetAdapter } from 'react-native-bottom-sheet-stack/gorhom';
|
|
44
|
+
|
|
45
|
+
// 1. Define a bottom sheet component
|
|
46
|
+
const MySheet = forwardRef((props, ref) => {
|
|
47
|
+
const { close } = useBottomSheetContext();
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<GorhomSheetAdapter ref={ref} snapPoints={['50%']}>
|
|
51
|
+
<BottomSheetView>
|
|
52
|
+
<View style={{ padding: 20 }}>
|
|
53
|
+
<Text>Hello from Bottom Sheet!</Text>
|
|
54
|
+
<Button title="Close" onPress={close} />
|
|
55
|
+
</View>
|
|
56
|
+
</BottomSheetView>
|
|
57
|
+
</GorhomSheetAdapter>
|
|
58
|
+
);
|
|
59
|
+
});
|
|
49
60
|
|
|
50
|
-
//
|
|
61
|
+
// 2. Setup provider and host
|
|
51
62
|
function App() {
|
|
52
63
|
return (
|
|
53
|
-
<BottomSheetManagerProvider id="
|
|
64
|
+
<BottomSheetManagerProvider id="default">
|
|
54
65
|
<BottomSheetScaleView>
|
|
55
|
-
<
|
|
66
|
+
<YourAppContent />
|
|
56
67
|
</BottomSheetScaleView>
|
|
57
68
|
<BottomSheetHost />
|
|
58
69
|
</BottomSheetManagerProvider>
|
|
59
70
|
);
|
|
60
71
|
}
|
|
61
72
|
|
|
62
|
-
//
|
|
63
|
-
|
|
64
|
-
const { close } = useBottomSheetContext();
|
|
65
|
-
return (
|
|
66
|
-
<BottomSheetManaged ref={ref} snapPoints={['50%']}>
|
|
67
|
-
<Text>Hello!</Text>
|
|
68
|
-
<Button title="Close" onPress={close} />
|
|
69
|
-
</BottomSheetManaged>
|
|
70
|
-
);
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
// 3. Open it
|
|
74
|
-
function OpenButton() {
|
|
73
|
+
// 3. Open bottom sheets from anywhere
|
|
74
|
+
function YourAppContent() {
|
|
75
75
|
const { open } = useBottomSheetManager();
|
|
76
|
+
|
|
76
77
|
return (
|
|
77
78
|
<Button
|
|
78
|
-
title="Open"
|
|
79
|
-
onPress={() => open(<MySheet />, {
|
|
79
|
+
title="Open Sheet"
|
|
80
|
+
onPress={() => open(<MySheet />, { mode: 'push' })}
|
|
80
81
|
/>
|
|
81
82
|
);
|
|
82
83
|
}
|
|
83
84
|
```
|
|
84
85
|
|
|
86
|
+
## Shipped Adapters
|
|
87
|
+
|
|
88
|
+
| Adapter | Import | Wraps | Extra Peer Dependencies |
|
|
89
|
+
|---------|--------|-------|-----------------------|
|
|
90
|
+
| `GorhomSheetAdapter` | `react-native-bottom-sheet-stack/gorhom` | `@gorhom/bottom-sheet` | `@gorhom/bottom-sheet`, `react-native-gesture-handler` |
|
|
91
|
+
| `CustomModalAdapter` | `react-native-bottom-sheet-stack` | Custom animated modal | None |
|
|
92
|
+
| `ReactNativeModalAdapter` | `react-native-bottom-sheet-stack/react-native-modal` | `react-native-modal` | `react-native-modal` |
|
|
93
|
+
| `ActionsSheetAdapter` | `react-native-bottom-sheet-stack/actions-sheet` | `react-native-actions-sheet` | `react-native-actions-sheet` |
|
|
94
|
+
|
|
95
|
+
Adapters with 3rd-party dependencies are shipped as separate subpath exports so that importing the main package never triggers Metro resolution errors for uninstalled libraries. Each sheet in the stack can use a different adapter.
|
|
96
|
+
|
|
85
97
|
## License
|
|
86
98
|
|
|
87
99
|
MIT
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_bottomSheet","_interopRequireWildcard","require","_react","_reactNativeReanimated","_bottomSheetCoordinator","_BottomSheetDefaultIndex","_useAdapterRef","_useAnimatedIndex","_useBackHandler","_useBottomSheetContext","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","nullBackdrop","GorhomSheetAdapter","exports","React","forwardRef","t0","forwardedRef","$","_compilerRuntime","c","children","externalAnimatedIndex","onAnimate","onChange","onClose","props","t1","t2","enablePanDownToClose","backdropComponent","animatedIndex","undefined","id","useBottomSheetContext","ref","useAdapterRef","contextAnimatedIndex","useAnimatedIndex","defaultIndex","useBottomSheetDefaultIndex","gorhomRef","useRef","t3","t4","Symbol","for","expand","current","close","useImperativeHandle","useAnimatedReaction","value","t5","createSheetEventHandlers","handleDismiss","handleOpened","handleClosed","useBackHandler","t6","fromIndex","toIndex","fromPosition","toPosition","wrappedOnAnimate","t7","index","position","type","wrappedOnChange","t8","wrappedOnClose","t9","stiffness","damping","mass","config","useBottomSheetSpringConfigs","t10","jsx","displayName"],"sourceRoot":"../../../../src","sources":["adapters/gorhom-sheet/GorhomSheetAdapter.tsx"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,uBAAA,CAAAC,OAAA;
|
|
1
|
+
{"version":3,"names":["_bottomSheet","_interopRequireWildcard","require","_react","_reactNativeReanimated","_bottomSheetCoordinator","_BottomSheetDefaultIndex","_useAdapterRef","_useAnimatedIndex","_useBackHandler","_useBottomSheetContext","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","nullBackdrop","GorhomSheetAdapter","exports","React","forwardRef","t0","forwardedRef","$","_compilerRuntime","c","children","externalAnimatedIndex","onAnimate","onChange","onClose","props","t1","t2","enablePanDownToClose","backdropComponent","animatedIndex","undefined","id","useBottomSheetContext","ref","useAdapterRef","contextAnimatedIndex","useAnimatedIndex","defaultIndex","useBottomSheetDefaultIndex","gorhomRef","useRef","t3","t4","Symbol","for","expand","current","close","useImperativeHandle","useAnimatedReaction","value","t5","createSheetEventHandlers","handleDismiss","handleOpened","handleClosed","useBackHandler","t6","fromIndex","toIndex","fromPosition","toPosition","wrappedOnAnimate","t7","index","position","type","wrappedOnChange","t8","wrappedOnClose","t9","stiffness","damping","mass","config","useBottomSheetSpringConfigs","t10","jsx","displayName"],"sourceRoot":"../../../../src","sources":["adapters/gorhom-sheet/GorhomSheetAdapter.tsx"],"mappings":";;;;;;;AAAA,IAAAA,YAAA,GAAAC,uBAAA,CAAAC,OAAA;AAKA,IAAAC,MAAA,GAAAF,uBAAA,CAAAC,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAGA,IAAAG,uBAAA,GAAAH,OAAA;AACA,IAAAI,wBAAA,GAAAJ,OAAA;AACA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,iBAAA,GAAAN,OAAA;AACA,IAAAO,eAAA,GAAAP,OAAA;AACA,IAAAQ,sBAAA,GAAAR,OAAA;AAAoE,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAU,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAZ,wBAAAY,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CA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AxF,WAAA,CAAAyF,GAAA,EAACpG,YAAA,CAAAkB,OAAmB;MACA+E,gBAAM,EAANA,MAAM;MACnBnC,GAAS,EAATA,SAAS;MAAA,GACVf,KAAK;MACFa,KAAY,EAAZA,YAAY;MACJF,aAAoB,EAApBA,oBAAoB;MACzBgC,QAAe,EAAfA,eAAe;MAChBE,OAAc,EAAdA,cAAc;MACZP,SAAgB,EAAhBA,gBAAgB;MACRlC,iBAAiB,EAAjBA,iBAAiB;MACdD,oBAAoB,EAApBA,oBAAoB;MAAAR,QAAA,EAEzCA;IAAQ,CACU,CAAC;IAAAH,CAAA,OAAAY,iBAAA;IAAAZ,CAAA,OAAAG,QAAA;IAAAH,CAAA,OAAA0D,MAAA;IAAA1D,CAAA,OAAAmB,oBAAA;IAAAnB,CAAA,OAAAqB,YAAA;IAAArB,CAAA,OAAAW,oBAAA;IAAAX,CAAA,OAAAQ,KAAA;IAAAR,CAAA,OAAA8C,gBAAA;IAAA9C,CAAA,OAAAmD,eAAA;IAAAnD,CAAA,OAAAqD,cAAA;IAAArD,CAAA,OAAA4D,GAAA;EAAA;IAAAA,GAAA,GAAA5D,CAAA;EAAA;EAAA,OAbtB4D,GAasB;AAAA,CAG5B,CAAC;AAEDlE,kBAAkB,CAACoE,WAAW,GAAG,oBAAoB","ignoreList":[]}
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "BottomSheetManaged", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _GorhomSheetAdapter.GorhomSheetAdapter;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "GorhomSheetAdapter", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_GorhomSheetAdapter","require"],"sourceRoot":"../../../../src","sources":["adapters/gorhom-sheet/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"names":["_GorhomSheetAdapter","require"],"sourceRoot":"../../../../src","sources":["adapters/gorhom-sheet/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,mBAAA,GAAAC,OAAA","ignoreList":[]}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -3,24 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "ActionsSheetAdapter", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _actionsSheet.ActionsSheetAdapter;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "BottomSheetHost", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function () {
|
|
15
9
|
return _BottomSheetHost.BottomSheetHost;
|
|
16
10
|
}
|
|
17
11
|
});
|
|
18
|
-
Object.defineProperty(exports, "BottomSheetManaged", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _BottomSheetManaged.BottomSheetManaged;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
12
|
Object.defineProperty(exports, "BottomSheetManagerProvider", {
|
|
25
13
|
enumerable: true,
|
|
26
14
|
get: function () {
|
|
@@ -51,24 +39,6 @@ Object.defineProperty(exports, "CustomModalAdapter", {
|
|
|
51
39
|
return _customModal.CustomModalAdapter;
|
|
52
40
|
}
|
|
53
41
|
});
|
|
54
|
-
Object.defineProperty(exports, "GorhomSheetAdapter", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _gorhomSheet.GorhomSheetAdapter;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "ModalAdapter", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _customModal.ModalAdapter;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "ReactNativeModalAdapter", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _reactNativeModal.ReactNativeModalAdapter;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
42
|
Object.defineProperty(exports, "__getAllAnimatedIndexes", {
|
|
73
43
|
enumerable: true,
|
|
74
44
|
get: function () {
|
|
@@ -168,13 +138,9 @@ Object.defineProperty(exports, "useBottomSheetStore", {
|
|
|
168
138
|
var _BottomSheetManager = require("./BottomSheetManager.provider");
|
|
169
139
|
var _BottomSheetHost = require("./BottomSheetHost");
|
|
170
140
|
var _BottomSheetScaleView = require("./BottomSheetScaleView");
|
|
171
|
-
var _BottomSheetManaged = require("./BottomSheetManaged");
|
|
172
141
|
var _BottomSheetPortal = require("./BottomSheetPortal");
|
|
173
142
|
var _BottomSheetPersistent = require("./BottomSheetPersistent");
|
|
174
|
-
var _gorhomSheet = require("./adapters/gorhom-sheet");
|
|
175
143
|
var _customModal = require("./adapters/custom-modal");
|
|
176
|
-
var _reactNativeModal = require("./adapters/react-native-modal");
|
|
177
|
-
var _actionsSheet = require("./adapters/actions-sheet");
|
|
178
144
|
var _bottomSheetCoordinator = require("./bottomSheetCoordinator");
|
|
179
145
|
var _useAdapterRef = require("./useAdapterRef");
|
|
180
146
|
var _useAnimatedIndex = require("./useAnimatedIndex");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_BottomSheetManager","require","_BottomSheetHost","_BottomSheetScaleView","
|
|
1
|
+
{"version":3,"names":["_BottomSheetManager","require","_BottomSheetHost","_BottomSheetScaleView","_BottomSheetPortal","_BottomSheetPersistent","_customModal","_bottomSheetCoordinator","_useAdapterRef","_useAnimatedIndex","_useBackHandler","_animatedRegistry","_useBottomSheetManager","_useBottomSheetControl","_useBottomSheetContext","_useBottomSheetStatus","_bottomSheet","_refsMap","_portalSessionRegistry"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAAA,mBAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GAAAJ,OAAA;AAGA,IAAAK,YAAA,GAAAL,OAAA;AAcA,IAAAM,uBAAA,GAAAN,OAAA;AACA,IAAAO,cAAA,GAAAP,OAAA;AACA,IAAAQ,iBAAA,GAAAR,OAAA;AACA,IAAAS,eAAA,GAAAT,OAAA;AACA,IAAAU,iBAAA,GAAAV,OAAA;AAGA,IAAAW,sBAAA,GAAAX,OAAA;AACA,IAAAY,sBAAA,GAAAZ,OAAA;AAIA,IAAAa,sBAAA,GAAAb,OAAA;AAKA,IAAAc,qBAAA,GAAAd,OAAA;AAkBA,IAAAe,YAAA,GAAAf,OAAA;AAGA,IAAAgB,QAAA,GAAAhB,OAAA;AAKA,IAAAiB,sBAAA,GAAAjB,OAAA","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GorhomSheetAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/gorhom-sheet/GorhomSheetAdapter.tsx"],"names":[],"mappings":"AAAA,OAA4B,EAE1B,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"GorhomSheetAdapter.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/gorhom-sheet/GorhomSheetAdapter.tsx"],"names":[],"mappings":"AAAA,OAA4B,EAE1B,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAsC,MAAM,OAAO,CAAC;AAG3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAQ3D,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;CAAG;AAIpE,eAAO,MAAM,kBAAkB,iGAkG9B,CAAC"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export { GorhomSheetAdapter, type GorhomSheetAdapterProps, } from './GorhomSheetAdapter';
|
|
2
|
+
/** @deprecated Use `GorhomSheetAdapter` instead. */
|
|
3
|
+
export { GorhomSheetAdapter as BottomSheetManaged } from './GorhomSheetAdapter';
|
|
4
|
+
/** @deprecated Use `GorhomSheetAdapterProps` instead. */
|
|
5
|
+
export { type GorhomSheetAdapterProps as BottomSheetManagedProps } from './GorhomSheetAdapter';
|
|
2
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/gorhom-sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/adapters/gorhom-sheet/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,GAC7B,MAAM,sBAAsB,CAAC;AAE9B,oDAAoD;AACpD,OAAO,EAAE,kBAAkB,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAChF,yDAAyD;AACzD,OAAO,EAAE,KAAK,uBAAuB,IAAI,uBAAuB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,16 +1,10 @@
|
|
|
1
1
|
export { BottomSheetManagerProvider } from './BottomSheetManager.provider';
|
|
2
2
|
export { BottomSheetHost } from './BottomSheetHost';
|
|
3
3
|
export { BottomSheetScaleView } from './BottomSheetScaleView';
|
|
4
|
-
export { BottomSheetManaged, type BottomSheetRef } from './BottomSheetManaged';
|
|
5
4
|
export { BottomSheetPortal } from './BottomSheetPortal';
|
|
6
5
|
export { BottomSheetPersistent } from './BottomSheetPersistent';
|
|
7
|
-
export { GorhomSheetAdapter, type GorhomSheetAdapterProps, } from './adapters/gorhom-sheet';
|
|
8
6
|
export { CustomModalAdapter, type ModalAdapterProps, } from './adapters/custom-modal';
|
|
9
|
-
|
|
10
|
-
export { ModalAdapter } from './adapters/custom-modal';
|
|
11
|
-
export { ReactNativeModalAdapter, type ReactNativeModalAdapterProps, } from './adapters/react-native-modal';
|
|
12
|
-
export { ActionsSheetAdapter, type ActionsSheetAdapterProps, } from './adapters/actions-sheet';
|
|
13
|
-
export type { SheetAdapterRef, SheetAdapterEvents, SheetRef, } from './adapter.types';
|
|
7
|
+
export type { SheetAdapterRef, SheetAdapterRef as BottomSheetRef, SheetAdapterEvents, SheetRef, } from './adapter.types';
|
|
14
8
|
export { createSheetEventHandlers } from './bottomSheetCoordinator';
|
|
15
9
|
export { useAdapterRef } from './useAdapterRef';
|
|
16
10
|
export { useAnimatedIndex } from './useAnimatedIndex';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAA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
|
package/package.json
CHANGED
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-bottom-sheet-stack",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.2",
|
|
4
4
|
"description": "Bottom Sheet Stack Manager",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
7
7
|
"types": "lib/typescript/src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./lib/typescript/src/index.d.ts",
|
|
11
|
+
"default": "./lib/commonjs/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./gorhom": {
|
|
14
|
+
"types": "./lib/typescript/src/adapters/gorhom-sheet/index.d.ts",
|
|
15
|
+
"default": "./lib/commonjs/adapters/gorhom-sheet/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./react-native-modal": {
|
|
18
|
+
"types": "./lib/typescript/src/adapters/react-native-modal/index.d.ts",
|
|
19
|
+
"default": "./lib/commonjs/adapters/react-native-modal/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./actions-sheet": {
|
|
22
|
+
"types": "./lib/typescript/src/adapters/actions-sheet/index.d.ts",
|
|
23
|
+
"default": "./lib/commonjs/adapters/actions-sheet/index.js"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
8
26
|
"files": [
|
|
9
27
|
"src",
|
|
10
28
|
"lib/typescript",
|
|
@@ -2,6 +2,7 @@ import BottomSheetOriginal, {
|
|
|
2
2
|
useBottomSheetSpringConfigs,
|
|
3
3
|
type BottomSheetProps,
|
|
4
4
|
} from '@gorhom/bottom-sheet';
|
|
5
|
+
import type { BottomSheetMethods } from '@gorhom/bottom-sheet/lib/typescript/types';
|
|
5
6
|
import React, { useImperativeHandle, useRef } from 'react';
|
|
6
7
|
import { useAnimatedReaction } from 'react-native-reanimated';
|
|
7
8
|
|
|
@@ -12,7 +13,6 @@ import { useAdapterRef } from '../../useAdapterRef';
|
|
|
12
13
|
import { useAnimatedIndex } from '../../useAnimatedIndex';
|
|
13
14
|
import { useBackHandler } from '../../useBackHandler';
|
|
14
15
|
import { useBottomSheetContext } from '../../useBottomSheetContext';
|
|
15
|
-
import type { BottomSheetMethods } from '@gorhom/bottom-sheet/lib/typescript/types';
|
|
16
16
|
|
|
17
17
|
export interface GorhomSheetAdapterProps extends BottomSheetProps {}
|
|
18
18
|
|
|
@@ -2,3 +2,8 @@ export {
|
|
|
2
2
|
GorhomSheetAdapter,
|
|
3
3
|
type GorhomSheetAdapterProps,
|
|
4
4
|
} from './GorhomSheetAdapter';
|
|
5
|
+
|
|
6
|
+
/** @deprecated Use `GorhomSheetAdapter` instead. */
|
|
7
|
+
export { GorhomSheetAdapter as BottomSheetManaged } from './GorhomSheetAdapter';
|
|
8
|
+
/** @deprecated Use `GorhomSheetAdapterProps` instead. */
|
|
9
|
+
export { type GorhomSheetAdapterProps as BottomSheetManagedProps } from './GorhomSheetAdapter';
|
package/src/index.tsx
CHANGED
|
@@ -2,33 +2,19 @@
|
|
|
2
2
|
export { BottomSheetManagerProvider } from './BottomSheetManager.provider';
|
|
3
3
|
export { BottomSheetHost } from './BottomSheetHost';
|
|
4
4
|
export { BottomSheetScaleView } from './BottomSheetScaleView';
|
|
5
|
-
export { BottomSheetManaged, type BottomSheetRef } from './BottomSheetManaged';
|
|
6
5
|
export { BottomSheetPortal } from './BottomSheetPortal';
|
|
7
6
|
export { BottomSheetPersistent } from './BottomSheetPersistent';
|
|
8
7
|
|
|
9
|
-
// Adapters
|
|
10
|
-
export {
|
|
11
|
-
GorhomSheetAdapter,
|
|
12
|
-
type GorhomSheetAdapterProps,
|
|
13
|
-
} from './adapters/gorhom-sheet';
|
|
8
|
+
// Adapters (only those with zero 3rd-party deps)
|
|
14
9
|
export {
|
|
15
10
|
CustomModalAdapter,
|
|
16
11
|
type ModalAdapterProps,
|
|
17
12
|
} from './adapters/custom-modal';
|
|
18
|
-
/** @deprecated Use `CustomModalAdapter` instead. */
|
|
19
|
-
export { ModalAdapter } from './adapters/custom-modal';
|
|
20
|
-
export {
|
|
21
|
-
ReactNativeModalAdapter,
|
|
22
|
-
type ReactNativeModalAdapterProps,
|
|
23
|
-
} from './adapters/react-native-modal';
|
|
24
|
-
export {
|
|
25
|
-
ActionsSheetAdapter,
|
|
26
|
-
type ActionsSheetAdapterProps,
|
|
27
|
-
} from './adapters/actions-sheet';
|
|
28
13
|
|
|
29
14
|
// Adapter types
|
|
30
15
|
export type {
|
|
31
16
|
SheetAdapterRef,
|
|
17
|
+
SheetAdapterRef as BottomSheetRef,
|
|
32
18
|
SheetAdapterEvents,
|
|
33
19
|
SheetRef,
|
|
34
20
|
} from './adapter.types';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
Object.defineProperty(exports, "BottomSheetManaged", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function () {
|
|
9
|
-
return _gorhomSheet.GorhomSheetAdapter;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
|
-
var _gorhomSheet = require("./adapters/gorhom-sheet");
|
|
13
|
-
//# sourceMappingURL=BottomSheetManaged.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_gorhomSheet","require"],"sourceRoot":"../../src","sources":["BottomSheetManaged.tsx"],"mappings":";;;;;;;;;;;AAQA,IAAAA,YAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backward-compatible re-export of GorhomSheetAdapter.
|
|
3
|
-
*
|
|
4
|
-
* Existing users can continue importing `BottomSheetManaged` and `BottomSheetRef`
|
|
5
|
-
* without any changes. For new code, prefer importing `GorhomSheetAdapter` directly
|
|
6
|
-
* from 'react-native-bottom-sheet-stack/adapters/gorhom' or use the `ModalAdapter`
|
|
7
|
-
* for modal-based sheets.
|
|
8
|
-
*/
|
|
9
|
-
export { GorhomSheetAdapter as BottomSheetManaged, type GorhomSheetAdapterProps as BottomSheetManagedProps, } from './adapters/gorhom-sheet';
|
|
10
|
-
export type { SheetAdapterRef as BottomSheetRef } from './adapter.types';
|
|
11
|
-
//# sourceMappingURL=BottomSheetManaged.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetManaged.d.ts","sourceRoot":"","sources":["../../../src/BottomSheetManaged.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,kBAAkB,IAAI,kBAAkB,EACxC,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,MAAM,yBAAyB,CAAC;AAEjC,YAAY,EAAE,eAAe,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Backward-compatible re-export of GorhomSheetAdapter.
|
|
3
|
-
*
|
|
4
|
-
* Existing users can continue importing `BottomSheetManaged` and `BottomSheetRef`
|
|
5
|
-
* without any changes. For new code, prefer importing `GorhomSheetAdapter` directly
|
|
6
|
-
* from 'react-native-bottom-sheet-stack/adapters/gorhom' or use the `ModalAdapter`
|
|
7
|
-
* for modal-based sheets.
|
|
8
|
-
*/
|
|
9
|
-
export {
|
|
10
|
-
GorhomSheetAdapter as BottomSheetManaged,
|
|
11
|
-
type GorhomSheetAdapterProps as BottomSheetManagedProps,
|
|
12
|
-
} from './adapters/gorhom-sheet';
|
|
13
|
-
|
|
14
|
-
export type { SheetAdapterRef as BottomSheetRef } from './adapter.types';
|