Reference
Sheetdefinition

SheetDefinition

Definition of a Sheet for intellisense when using SheetManager or useSheetRouter hook.

payload

Data that a sheet can be accessed in a sheet with useSheetPayload hook when it is opened.

TypeRequired
anyfalse

returnValue

Data that a sheet must return when closed.

TypeRequired
anyfalse

routes

All the routes that this sheet will have.

TypeRequired
objectfalse
declare module 'react-native-actions-sheet' {
  interface Sheets {
    'example-sheet': SheetDefinition<{
      payload: string;
      returnValue: boolean;
      routes: {
        'route-1': RouteDefinition<{
          param: 'param';
        }>;
      };
    }>;
  }
}