Skip to content

Commit 36d404b

Browse files
committed
chore: fix test suite
1 parent d1a7b02 commit 36d404b

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

example/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import "../global.css";
77
export default function App() {
88
return (
99
<View className="flex-1 bg-white items-center justify-center">
10-
<Text className="text-blue-800 animate-bounce">Hello world!!!</Text>
10+
<Text className="text-red-800 animate-bounce">Hello world!!!</Text>
1111
<StatusBar style="auto" />
1212
</View>
1313
);

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@
3838
},
3939
"./components": {
4040
"source": "./src/components/index.cts",
41+
"types": "./src/components/index.d.ts",
4142
"import": {
42-
"types": "./dist/typescript/module/src/components/index.d.ts",
4343
"default": "./dist/module/components/index.cjs"
4444
},
4545
"require": {
46-
"types": "./dist/typescript/commonjs/src/components/index.d.ts",
4746
"default": "./dist/commonjs/components/index.cjs"
4847
}
4948
},

src/__tests__/vendor/tailwind/states.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { fireEvent, screen } from "@testing-library/react-native";
2+
import { Switch, TextInput, View } from "react-native-css/components";
23

3-
import { Switch, TextInput, View } from "../../../components";
44
import { render } from "./_tailwind";
55

66
const testID = "component";

src/components/index.cts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ module.exports = {
5050
/**
5151
* We need to return
5252
*/
53-
5453
get DrawerLayoutAndroid() {
5554
return require("react-native").DrawerLayoutAndroid;
5655
},

src/components/index.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
export * from "react-native";
2+
export { ActivityIndicator } from "./ActivityIndicator";
3+
export { Button } from "./Button";
4+
export { FlatList } from "./FlatList";
5+
export { Image } from "./Image";
6+
export { ImageBackground } from "./ImageBackground";
7+
export { KeyboardAvoidingView } from "./KeyboardAvoidingView";
8+
export { Pressable } from "./Pressable";
9+
export { ScrollView } from "./ScrollView";
10+
export { Switch } from "./Switch";
11+
export { Text } from "./Text";
12+
export { TextInput } from "./TextInput";
13+
export { TouchableHighlight } from "./TouchableHighlight";
14+
export { TouchableOpacity } from "./TouchableOpacity";
15+
export { TouchableWithoutFeedback } from "./TouchableWithoutFeedback";
16+
export { View } from "./View";
17+
export { VirtualizedList } from "./VirtualizedList";

0 commit comments

Comments
 (0)