1import { describe, it, expect } from "vitest";
2import { stringImpl, registerComponentImpl } from "../src/Yoga/React/Native.js";
4describe("Native FFI", () => {
5 it("stringImpl creates a Text element from a string", () => {
6 const el = stringImpl("hello");
7 expect(el).toBeDefined();
8 expect(el.props.children).toBe("hello");
11 it("registerComponentImpl does not throw", () => {
12 expect(() => registerComponentImpl("TestApp", () => null)).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