Closed KirillCustom closed 5 months ago
@KirillCustom define the sheet within the parent sheet. Or dismiss the presented sheet first before opening another one. The former has better UX imo.
<TrueSheet>
<Button onPress={() => sheet2.current?.present()}
<TrueSheet ref={sheet2}>
// ...
</TrueSheet>
</TrueSheet>
Example:
On iOS, when you try to open a sheet on top of an existing sheet, an error appears in the console:
Attempt to present <TrueSheet.TrueSheetViewController: 0x11829f800> on <UIViewController: 0x10900eb10> (from <RNSScreen: 0x117dbf400>) which is already presenting <TrueSheet.TrueSheetViewController: 0x11a0b9200>.
Does this library support multiple sheets, as in Android?