1import { describe, it, expect } from "vitest";
2import { showActionSheetImpl, dismissActionSheet } from "../src/Yoga/React/Native/ActionSheetIOS.js";
4describe("ActionSheetIOS FFI", () => {
5 it("showActionSheetImpl calls the callback", () => {
8 { options: ["Cancel", "Delete"], cancelButtonIndex: 0, destructiveButtonIndex: 1 },
9 (index) => { selectedIndex = index; }
11 expect(selectedIndex).toBe(0);
14 it("dismissActionSheet is an effect", () => {
15 expect(() => dismissActionSheet()).not.toThrow();
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list