Skip to content

Commit

Permalink
Merge pull request #2471 from gluestack/fix/use-media-docs
Browse files Browse the repository at this point in the history
Fix/use media docs
  • Loading branch information
Viraj-10 authored Sep 17, 2024
2 parents c08dd23 + 965da99 commit 7ad0ea9
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,26 @@ import Wrapper from '../../core-components/nativewind/Wrapper';
<>


### Step 1: Copy and paste the following code into your project.
### Step 1: Copy and paste the following code into index.ts in your project.

<CollapsibleCode>

```jsx
%%-- File: core-components/ui/utils/use-media-query.ts --%%
%%-- File: core-components/hooks/use-media-query/index.ts --%%
```
</CollapsibleCode>

> Note: **Step 2 is for web only**
### Step 2: Copy and paste the following code into index.web.ts in your project.
<CollapsibleCode>

```jsx
%%-- File: core-components/hooks/use-media-query/index.web.ts --%%
```
</CollapsibleCode>

### Step 2: Update the import paths to match your project setup.
### Step 3: Update the import paths to match your project setup.
</>
</Tabs.TabPanel>
</Tabs.TabPanels>
Expand Down

0 comments on commit 7ad0ea9

Please sign in to comment.