From 7a499ff6c0dbc87d86d5ccd2f60537cb882e3173 Mon Sep 17 00:00:00 2001 From: Pierre-Yves CANEILL <1199435+pcaneill@users.noreply.github.com> Date: Mon, 6 Jul 2026 22:50:39 +0200 Subject: [PATCH] Issus & Bug Report --- README.md | 133 +++++++++++++----------------------------------------- 1 file changed, 32 insertions(+), 101 deletions(-) diff --git a/README.md b/README.md index f216921..0ce5b73 100644 --- a/README.md +++ b/README.md @@ -1,116 +1,47 @@ -# react-native-bottom-sheet-stack +**Hello, it is not possible to create an Issue as Discussion are disabled on the repository.** -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. -## Documentation +I do enjoy this library, but it is not working on Expo 57 (following a worklets update) -**[View Full Documentation](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/)** +I do have this error : `[Worklets] Cannot copy value of type NativeWorklets.` -- [Getting Started](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/getting-started) -- [Imperative vs Portal API](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/api-comparison) -- [Navigation Modes](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/navigation-modes) -- [Scale Animation](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/scale-animation) -- [Portal API (Context Preservation)](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/context-preservation) -- [Persistent Sheets](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/persistent-sheets) -- [Type-Safe IDs & Params](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/type-safe-ids) -- [Adapters](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/adapters) / [Shipped Adapters](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/built-in-adapters) / [Custom Adapters](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/custom-adapters) -- [API Reference](https://arekkubaczkowski.github.io/react-native-bottom-sheet-stack/api/components) +I am getting help from AI (Claude) and it pointed me to the fact that the library shipped precompile CommonJS. It managed to fix the issue by relying only on tsx in my metro config. -## Features -- **Adapter Architecture** - Pluggable adapters for different bottom sheet/modal libraries. Ships with adapters for `@gorhom/bottom-sheet`, `react-native-modal`, `react-native-actions-sheet`, `@swmansion/react-native-bottom-sheet`, and a custom modal. You can also build your own. -- **Stack Navigation** - `push`, `switch`, and `replace` modes for managing multiple sheets -- **Scale Animation** - iOS-style background scaling effect when sheets are stacked -- **Context Preservation** - Portal-based API that preserves React context in bottom sheets -- **Mixed Stacking** - Bottom sheets and modals coexist in the same stack -- **Persistent Sheets** - Pre-mounted sheets that open instantly and preserve state -- **Type-Safe** - Full TypeScript support with type-safe portal IDs and params -- **Group Support** - Isolated stacks for different parts of your app +
+Here is the AI report -## Installation +**The symptom** -```bash -yarn add react-native-bottom-sheet-stack -``` - -### Peer Dependencies - -```bash -yarn add react-native-reanimated react-native-safe-area-context react-native-teleport react-native-worklets zustand -``` - -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`). - -## Quick Example (with `@gorhom/bottom-sheet`) - -```tsx -import { forwardRef } from 'react'; -import { View, Text, Button } from 'react-native'; -import { BottomSheetView } from '@gorhom/bottom-sheet'; -import { - BottomSheetManagerProvider, - BottomSheetHost, - BottomSheetScaleView, - useBottomSheetManager, - useBottomSheetContext, -} from 'react-native-bottom-sheet-stack'; -import { GorhomSheetAdapter } from 'react-native-bottom-sheet-stack/gorhom'; - -// 1. Define a bottom sheet component -const MySheet = forwardRef((props, ref) => { - const { close } = useBottomSheetContext(); +Opening any bottom sheet → [Worklets] Cannot copy value of type NativeWorklets. - return ( - - - - Hello from Bottom Sheet! -