diff --git a/app/(site)/docs/installation/page.tsx b/app/(site)/docs/installation/page.tsx index d4f49cb..9aa353c 100644 --- a/app/(site)/docs/installation/page.tsx +++ b/app/(site)/docs/installation/page.tsx @@ -6,46 +6,93 @@ import { InstallationTabs } from "@/components/docs/installation-tabs"; import Image from "next/image"; import { useTheme } from "next-themes"; -export default function InstallationPage() { - const [selectedPlatform, setSelectedPlatform] = React.useState("expo"); - const { resolvedTheme } = useTheme(); - const [mounted, setMounted] = React.useState(false); - - React.useEffect(() => { - setMounted(true); - }, []); +const InstallationPageSkeleton = () => { + return ( +
- How to install dependencies and structure your app. -
+ {/* Info banner skeleton */} +- Quick setup with better developer experience -
+- Create theme.ts in /lib directory: + Create /lib directory and create theme.ts in it:
+ Create the theme provider in lib/theme-context.tsx: +
++ Create utils.ts in /lib directory for class merging utilities: +
+Create global.css in /app directory:
@@ -368,7 +493,7 @@ export const themes = {Create a new declaration file for NativeWind types:
@@ -381,7 +506,7 @@ export const themes = {Update your tsconfig.json:
@@ -412,7 +537,7 @@ export const themes = {Update or create babel.config.js:
@@ -436,7 +561,7 @@ export const themes = {Create metro.config.js:
@@ -452,13 +577,13 @@ const { withNativeWind } = require('nativewind/metro'); const config = getDefaultConfig(__dirname); module.exports = withNativeWind(config, { - input: './global.css', + input: './app/global.css', });`} />Update _layout.tsx:
@@ -467,9 +592,7 @@ module.exports = withNativeWind(config, { collapsible title="app/_layout.tsx" code={`import { View } from 'react-native'; -import { useState } from 'react'; -import { themes } from "@/lib/theme"; -import { ThemeProvider, useTheme } from '@/lib/ThemeProvider'; +import { ThemeProvider, useTheme } from '@/lib/theme-context'; import './global.css'; export default function RootLayout() { @@ -492,7 +615,7 @@ function AppContent() {Update app.json:
@@ -511,7 +634,7 @@ function AppContent() {Create components.json in your project root:
@@ -548,51 +671,44 @@ function AppContent() {Add this code in any of your components to test that everything is working:
- Support for React Native CLI is coming soon. We recommend using Expo for now. +
+ Support for React Native CLI is coming soon. Stay tuned!
- Now that you have set up your project, you can start adding components from our collection. - Visit the components section to explore available components and learn how to use them. -
-