Skip to content

Commit 3f31683

Browse files
committed
chore: update [email protected]
post-install hook compiles css: ``` "eas-build-post-install": "tailwindcss -i ./global.css -o ./node_modules/.cache/nativewind/global.css.native.css" ```
1 parent e952973 commit 3f31683

File tree

7 files changed

+28
-25
lines changed

7 files changed

+28
-25
lines changed

apps/mobile/app.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"expo": {
33
"name": "expo-monorepo",
44
"slug": "expo-monorepo",
5+
"scheme": "expo-monorepo",
56
"version": "1.0.0",
67
"orientation": "portrait",
78
"icon": "./assets/icon.png",

apps/mobile/app/(tabs)/_layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import FontAwesome from '@expo/vector-icons/FontAwesome';
22
import { Link, Tabs } from 'expo-router';
3-
import { Pressable } from 'react-native';
3+
import { Pressable, useColorScheme } from 'react-native';
44

55
// import Colors from "@/constants/Colors";
66

@@ -15,7 +15,7 @@ function TabBarIcon(props: {
1515
}
1616

1717
export default function TabLayout() {
18-
//const colorScheme = useColorScheme();
18+
const colorScheme = useColorScheme();
1919

2020
return (
2121
<Tabs

apps/mobile/app/(tabs)/index.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
import { vars } from 'nativewind';
2-
import { Text, View } from 'react-native';
2+
import { Pressable, Text, View } from 'react-native';
33

44
const theme = vars({
5-
'--theme-fg': 'blue',
5+
'--theme-fg': 'red',
66
});
77

88
const App = () => {
99
return (
1010
<View className="flex-1 items-center justify-center" style={theme}>
11-
<Text className="text-[16px] font-bold text-[--theme-fg] transition duration-[2s]">
12-
Variables
13-
</Text>
14-
<Text className="text-base font-bold active:scale-150 active:text-[--theme-fg] transition duration-[500ms]">
11+
<Text className="font-bold text-[--theme-fg]">Variables!</Text>
12+
<Text className="font-bold active:scale-150 active:text-[--theme-fg] transition duration-[500ms]">
1513
Transitions
1614
</Text>
17-
<Text className="text-[14px] font-bold animate-none active:animate-bounce">Animations</Text>
15+
<Text className="font-bold animate-bounce placeholder:text-white">Animations</Text>
1816
</View>
1917
);
2018
};

apps/mobile/app/_layout.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import '../global.css';
22
import FontAwesome from '@expo/vector-icons/FontAwesome';
33
import { useFonts } from 'expo-font';
44
import { SplashScreen, Stack } from 'expo-router';
5+
import { vars } from 'nativewind';
56
import { memo, useEffect } from 'react';
67
import { View, StyleSheet } from 'react-native';
78

apps/mobile/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"ios": "expo start --ios",
1212
"web": "expo start --web",
1313
"eas-build-pre-install": "npm install --global [email protected]",
14-
"eas-build-post-install": "pnpm run -w build:mobile"
14+
"eas-build-post-install": "tailwindcss -i ./global.css -o ./node_modules/.cache/nativewind/global.css.native.css"
1515
},
1616
"jest": {
1717
"preset": "jest-expo"
@@ -29,7 +29,7 @@
2929
"expo-status-bar": "~1.6.0",
3030
"expo-system-ui": "~2.4.0",
3131
"expo-web-browser": "~12.3.2",
32-
"nativewind": "4.0.0-alpha.29",
32+
"nativewind": "4.0.16",
3333
"react": "18.2.0",
3434
"react-dom": "18.2.0",
3535
"react-native": "0.72.6",

apps/mobile/tailwind.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
33
darkMode: 'class',
4-
content: ['app/**/*.{js,jsx,ts,tsx}'],
4+
content: ['app/**/*.{js,jsx,ts,tsx}', '../../packages/ui/**/*.{js,jsx,ts,tsx}'],
55
presets: [require('nativewind/preset')],
66
plugins: [],
77
};

pnpm-lock.yaml

Lines changed: 16 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)