1import { describe, it, expect } from "vitest";
3import { _viewImpl } from "../src/Yoga/React/Native/View.js";
4import { _textImpl } from "../src/Yoga/React/Native/Text.js";
5import { _textInputImpl } from "../src/Yoga/React/Native/TextInput.js";
6import { _scrollViewImpl } from "../src/Yoga/React/Native/ScrollView.js";
7import { _pressableImpl } from "../src/Yoga/React/Native/Pressable.js";
8import { _imageImpl, uri } from "../src/Yoga/React/Native/Image.js";
9import { _activityIndicatorImpl } from "../src/Yoga/React/Native/ActivityIndicator.js";
10import { _flatListImpl } from "../src/Yoga/React/Native/FlatList.js";
11import { _switchImpl } from "../src/Yoga/React/Native/Switch.js";
12import { _buttonImpl } from "../src/Yoga/React/Native/Button.js";
13import { _touchableOpacityImpl } from "../src/Yoga/React/Native/TouchableOpacity.js";
14import { _touchableHighlightImpl } from "../src/Yoga/React/Native/TouchableHighlight.js";
15import { _touchableWithoutFeedbackImpl } from "../src/Yoga/React/Native/TouchableWithoutFeedback.js";
16import { _modalImpl } from "../src/Yoga/React/Native/Modal.js";
17import { _safeAreaViewImpl } from "../src/Yoga/React/Native/SafeAreaView.js";
18import { _keyboardAvoidingViewImpl } from "../src/Yoga/React/Native/KeyboardAvoidingView.js";
19import { _imageBackgroundImpl } from "../src/Yoga/React/Native/ImageBackground.js";
20import { _sectionListImpl } from "../src/Yoga/React/Native/SectionList.js";
21import { _refreshControlImpl } from "../src/Yoga/React/Native/RefreshControl.js";
22import { _statusBarImpl } from "../src/Yoga/React/Native/StatusBar.js";
23import { _inputAccessoryViewImpl } from "../src/Yoga/React/Native/InputAccessoryView.js";
25describe("Component FFI exports", () => {
26 it("View exports the component", () => {
27 expect(_viewImpl).toBe("View");
30 it("Text exports the component", () => {
31 expect(_textImpl).toBe("Text");
34 it("TextInput exports the component", () => {
35 expect(_textInputImpl).toBe("TextInput");
38 it("ScrollView exports the component", () => {
39 expect(_scrollViewImpl).toBe("ScrollView");
42 it("Pressable exports the component", () => {
43 expect(_pressableImpl).toBe("Pressable");
46 it("Image exports the component", () => {
47 expect(_imageImpl).toBe("Image");
50 it("Image.uri wraps a URL", () => {
51 expect(uri("https://example.com/img.png")).toEqual({ uri: "https://example.com/img.png" });
54 it("ActivityIndicator exports the component", () => {
55 expect(_activityIndicatorImpl).toBe("ActivityIndicator");
58 it("FlatList exports the component", () => {
59 expect(_flatListImpl).toBe("FlatList");
62 it("Switch exports the component", () => {
63 expect(_switchImpl).toBe("Switch");
66 it("Button exports the component", () => {
67 expect(_buttonImpl).toBe("Button");
70 it("TouchableOpacity exports the component", () => {
71 expect(_touchableOpacityImpl).toBe("TouchableOpacity");
74 it("TouchableHighlight exports the component", () => {
75 expect(_touchableHighlightImpl).toBe("TouchableHighlight");
78 it("TouchableWithoutFeedback exports the component", () => {
79 expect(_touchableWithoutFeedbackImpl).toBe("TouchableWithoutFeedback");
82 it("Modal exports the component", () => {
83 expect(_modalImpl).toBe("Modal");
86 it("SafeAreaView exports the component", () => {
87 expect(_safeAreaViewImpl).toBe("SafeAreaView");
90 it("KeyboardAvoidingView exports the component", () => {
91 expect(_keyboardAvoidingViewImpl).toBe("KeyboardAvoidingView");
94 it("ImageBackground exports the component", () => {
95 expect(_imageBackgroundImpl).toBe("ImageBackground");
98 it("SectionList exports the component", () => {
99 expect(_sectionListImpl).toBe("SectionList");
102 it("RefreshControl exports the component", () => {
103 expect(_refreshControlImpl).toBe("RefreshControl");
106 it("StatusBar exports the component", () => {
107 expect(_statusBarImpl).toBe("StatusBar");
110 it("InputAccessoryView exports the component", () => {
111 expect(_inputAccessoryViewImpl).toBe("InputAccessoryView");
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