-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2119 from gluestack/fix/nw-docs-issues
fix/nw-docs-issues
- Loading branch information
Showing
10 changed files
with
45 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,17 +144,22 @@ This is an illustration of a **Table** component. | |
<Tabs.TabPanel value="manual"> | ||
<> | ||
|
||
### Step 1: Copy and paste the following code into index.tsx in your project. | ||
### Step 1: Install the following dependencies: | ||
```bash | ||
npm i @expo/html-elements | ||
``` | ||
|
||
### Step 2: Copy and paste the following code into index.tsx in your project. | ||
<CollapsibleCode> | ||
|
||
```jsx | ||
%%-- File: core-components/nativewind/table/index.tsx --%% | ||
``` | ||
</CollapsibleCode> | ||
|
||
> Note: **This Step is (optional) and only required if you want to add support for [React Server Components](https://vercel.com/blog/understanding-react-server-components), You can skip this and jump to Step 3 directly if you don't have this requirement.** | ||
> Note: **Step 3 is optional and only required if you want to add support for [React Server Components](https://vercel.com/blog/understanding-react-server-components), You can skip this and jump to Step 4 directly if you don't have this requirement.** | ||
### Step 2: Copy and paste the following code into index.web.tsx in your project. | ||
### Step 3(optional): Copy and paste the following code into index.web.tsx in your project. | ||
<CollapsibleCode> | ||
|
||
```jsx | ||
|
@@ -163,15 +168,15 @@ This is an illustration of a **Table** component. | |
</CollapsibleCode> | ||
|
||
|
||
### Step 3: Copy and paste the following code into styles.tsx in your project. | ||
### Step 4: Copy and paste the following code into styles.tsx in your project. | ||
<CollapsibleCode> | ||
|
||
```jsx | ||
%%-- File: core-components/nativewind/table/styles.tsx --%% | ||
``` | ||
</CollapsibleCode> | ||
|
||
### Step 4: Update the import paths to match your project setup. | ||
### Step 5: Update the import paths to match your project setup. | ||
</> | ||
</Tabs.TabPanel> | ||
</Tabs.TabPanels> | ||
|
@@ -365,32 +370,32 @@ function App(){ | |
<TableRow> | ||
<TableData>Rajesh Kumar</TableData> | ||
<TableData fontWeight="$normal">[email protected]</TableData> | ||
<TableData fontWeight="$normal">+91 98765 43210</TableData> | ||
<TableData fontWeight="$normal">1234567890</TableData> | ||
</TableRow> | ||
<TableRow> | ||
<TableData>Priya Sharma</TableData> | ||
<TableData fontWeight="$normal">[email protected]</TableData> | ||
<TableData fontWeight="$normal">+91 87654 32109</TableData> | ||
<TableData fontWeight="$normal">1234567890</TableData> | ||
</TableRow> | ||
<TableRow> | ||
<TableData>Ravi Patel</TableData> | ||
<TableData fontWeight="$normal">[email protected]</TableData> | ||
<TableData fontWeight="$normal">+91 76543 21098</TableData> | ||
<TableData fontWeight="$normal">1234567890</TableData> | ||
</TableRow> | ||
<TableRow> | ||
<TableData>Ananya Gupta</TableData> | ||
<TableData fontWeight="$normal">[email protected]</TableData> | ||
<TableData fontWeight="$normal">+91 65432 10987</TableData> | ||
<TableData fontWeight="$normal">1234567890</TableData> | ||
</TableRow> | ||
<TableRow> | ||
<TableData>Arjun Singh</TableData> | ||
<TableData fontWeight="$normal">[email protected]</TableData> | ||
<TableData fontWeight="$normal">+91 54321 09876</TableData> | ||
<TableData fontWeight="$normal">1234567890</TableData> | ||
</TableRow> | ||
<TableRow> | ||
<TableData>Nisha Verma</TableData> | ||
<TableData fontWeight="$normal">[email protected]</TableData> | ||
<TableData fontWeight="$normal">+91 43210 98765</TableData> | ||
<TableData fontWeight="$normal">1234567890</TableData> | ||
</TableRow> | ||
</TableBody> | ||
<TableCaption fontWeight="$normal"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters