Skip to content

Commit

Permalink
Merge pull request #274 from RUKAYAT-CODER/main
Browse files Browse the repository at this point in the history
Setup trend ui library #274
  • Loading branch information
Xaxxoo authored Feb 24, 2025
2 parents be70c17 + 60c3f7a commit eb40325
Show file tree
Hide file tree
Showing 11 changed files with 1,058 additions and 33 deletions.
1 change: 1 addition & 0 deletions mobile-app/app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "../global.css";
import {
DarkTheme,
DefaultTheme,
Expand Down
10 changes: 10 additions & 0 deletions mobile-app/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

module.exports = function (api) {
api.cache(true);
return {
presets: [
["babel-preset-expo", { jsxImportSource: "nativewind" }],
"nativewind/babel", 'react-native-reanimated/plugin'
],
};
};
12 changes: 12 additions & 0 deletions mobile-app/components/Test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { View, Text } from 'react-native'
import React from 'react'

const Test = () => {
return (
<View className="">
<Text>Test</Text>
</View>
)
}

export default Test
3 changes: 3 additions & 0 deletions mobile-app/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
7 changes: 7 additions & 0 deletions mobile-app/metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

const { getDefaultConfig } = require("expo/metro-config");
const { withNativeWind } = require("nativewind/metro");

const config = getDefaultConfig(__dirname);

module.exports = withNativeWind(config, { input: "./global.css" });
3 changes: 3 additions & 0 deletions mobile-app/nativewind-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/// <reference types="nativewind/types" />

// NOTE: This file should not be edited and should be committed with your source code. It is generated by NativeWind.
Loading

0 comments on commit eb40325

Please sign in to comment.